Your Name 11 tháng trước cách đây
mục cha
commit
a5ea70f711
5 tập tin đã thay đổi với 10 bổ sung5 xóa
  1. 3 2
      .env
  2. 3 1
      .gitignore
  3. 1 1
      process_data.py
  4. 0 0
      readme.md
  5. 3 1
      run_tests.py

+ 3 - 2
.env

@@ -1,2 +1,3 @@
-OPENAI_API_KEY=your-api-key-here
-LLM_MODEL=gpt-3.5-turbo
+OPENAI_API_KEY='sk-NscqaCD1PfVm7soEF3C3E6297bE14d7fB595Be8f17F39aFf'
+OPENAI_API_BASE='https://aiapi.magong.site/v1'
+LLM_MODEL="deepseek-chat"

+ 3 - 1
.gitignore

@@ -6,4 +6,6 @@ testm
 temp
 __pycache__
 myenv
-env
+env
+.aider*
+.env

+ 1 - 1
process_data.py

@@ -79,7 +79,7 @@ def main(input_file, output_file):
                 # Insert empty translation column to maintain structure
                 row.insert(search_term_index + 1, "翻译失败(处理错误)")
                 data[i] = row
-                continue
+                break
         
         # Save processed data
         save_csv(data, output_file)

+ 0 - 0
readme.md


+ 3 - 1
run_tests.py

@@ -33,4 +33,6 @@ def main():
         sys.exit(1)
 
 if __name__ == "__main__":
-    main()
+    import sys
+    print(sys.executable)
+    # main()