- 
                Notifications
    
You must be signed in to change notification settings  - Fork 281
 
Description
版本信息
Python version:  3.10.11
Version: 1.4.0
建议类型
新功能
描述
您好 感謝您開發如此好用的軟體
在使用命令行模式 (无GUI) 時顯示如下訊息
[WARNING] trans_llm_api:_request_translation:503 - No valid message content in API response.
[ERROR  ] trans_llm_api:_translate:595 - Fatal Error: An unrecoverable error occurred: ValueError - Received empty or invalid parsed response from API.
[DEBUG  ] trans_llm_api:_translate:598 - Traceback (most recent call last):
File "F:\BallonTranslator\BallonTranslator\modules\translators\trans_llm_api.py", line 539, in _translate
raise ValueError(
ValueError: Received empty or invalid parsed response from API.
[DEBUG  ] trans_llm_api:_initialize_client:196 - Initializing client for Google with key AIza...paek at endpoint https://generativelanguage.googleapis.com/v1beta/openai
[DEBUG  ] trans_llm_api:_request_translation:426 - Using 'json_object' mode for Google.
[DEBUG  ] proj_imgtrans:save:313 - project saved to D:/Download/Download/test\imgtrans_test.json
[INFO   ] trans_llm_api:_translate:557 - Successfully translated batch of 9. Tokens used: 1217
[DEBUG  ] trans_llm_api:_initialize_client:196 - Initializing client for Google with key AIza...paek at endpoint https://generativelanguage.googleapis.com/v1beta/openai
[DEBUG  ] trans_llm_api:_request_translation:426 - Using 'json_object' mode for Google.
[DEBUG  ] proj_imgtrans:save:313 - project saved to D:/Download/Download/test\imgtrans_test.json
因出現[WARNING] trans_llm_api:_request_translation:503 - No valid message content in API response.時
並不屬於翻譯失敗的情況,所以不會觸發重試(我設定3次)
能否能在出現[ERROR  ] 時 打印出目前正在處理的檔案名稱 以方便後續處理?
謝謝您~
图片
No response
其他信息
No response