Bug #189
openLỗi khi dịch text
0%
Description
- có những phần API của GPT đang trả về lộn xộn dẫn đến file dịch bị sai
INFO:app.translate_gpt_back_common.services.translator:input_text : 00003100 20 20 20 20 20 20 20 20
INFO:app.translate_gpt_back_common.services.translator:Using open ai key: ************Hf1T3BlbkFJX3LlX3R50Vk4q3Wsz6KT
INFO:app.translate_gpt_back_common.services.translator:retry_count 1
INFO:app.translate_gpt_back_common.services.translator:[{'role': 'user', 'content': 'original_text: paragraph_id 1: 00003100 20 20 20 20 20 20 20 20. Translate to english\n. Grammatically correct, never break words. Remove quotation marks at the beginning and end of the result, return only translated text in format paragraph_id, do not include original_text.\nenglish text:'}]
INFO:app.translate_gpt_back_common.services.translator:gpt-3.5-turbo
INFO:app.translate_gpt_back_common.services.translator:{'id': 'chatcmpl-8KqwUeihzlJfjQSxg6Sasrd27kkVO', 'object': 'chat.completion', 'created': 1699980762, 'model': 'gpt-3.5-turbo-0613', 'choices': [{'index': 0, 'message': {'role': 'assistant', 'content': 'paragraph_id 1: 00003100 '}, 'finish_reason': 'stop'}], 'usage': {'prompt_tokens': 81, 'completion_tokens': 10, 'total_tokens': 91}}
INFO:app.translate_gpt_back_common.services.translator:setup_api_key of model: gpt-3.5
INFO:app.translate_gpt_back_common.services.translator:count_random_key: 496
INFO:app.translate_gpt_back_common.services.translator:result {'result': 'paragraph_id 1: 00003100 ', 'total_tokens': 91, 'prompt_tokens': 81, 'trans_by_google': ''}
INFO:app.translate_gpt_back_common.services.translator:input_text : 00003110 64 3d 22 73 74 65 70 30
INFO:app.translate_gpt_back_common.services.translator:Using open ai key: ************oELT3BlbkFJHnP61NIBbrFTJzmd9YEb
INFO:app.translate_gpt_back_common.services.translator:retry_count 1
-- Input : paragraph_id 1: 00003100 20 20 20 20 20 20 20 20`
-- Output : 'paragraph_id 1: 00003100 ',
No data to display