Explorar el Código

refactor: add trailing comma to OpenAI client configuration

Your Name hace 1 año
padre
commit
d1ad092066
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      pdfzh_translator.py

+ 2 - 1
pdfzh_translator.py

@@ -63,7 +63,8 @@ class OpenAITranslator(BaseTranslator):
         self.options = {"temperature": 0}  # 随机采样可能会打断公式标记
         # Configure OpenAI client with environment variables
         self.client = openai.OpenAI(
-            api_key=os.getenv('OPENAI_API_KEY')
+            api_key=os.getenv('OPENAI_API_KEY'),
+            
         )
 
     def translate(self, text) -> str: