|
timestamp,message
|
|
1699460036731, }
|
|
1699460036731,}
|
|
1699460036731,"INFO:app.translate_gpt_back_common.services.translator:result {'result': '1, Nguyễn Quốc Sử.', 'total_tokens': 82, 'used_model': 'gpt-3.5-turbo-0613', 'prompt_tokens': 69}"
|
|
1699460036731,INFO:app.translate_gpt_back_common.services.translator:input_text : 1. Thay đổi tên tài liệu và mã tài liệu.
|
|
1699460036731,"2. Thay đổi định dạng, công thức tính."
|
|
1699460036731,3. Thêm câu hỏi cho vùng dự án Infrastructure
|
|
1699460036731,INFO:app.translate_gpt_back_common.services.translator:Using open ai key: ********************ooMT3BlbkFJ51QaInukCx2jTqAJliFc
|
|
1699460036731,INFO:app.translate_gpt_back_common.services.translator:retry_count 1
|
|
1699460036732,"INFO:app.translate_gpt_back_common.services.translator:[{'role': 'user', 'content': 'original_text: `1. Thay đổi tên tài liệu và mã tài liệu.
|
|
2. Thay đổi định dạng, công thức tính.
|
|
3. Thêm câu hỏi cho vùng dự án Infrastructure`. Translate to vietnamese
|
|
. 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.
|
|
vietnamese text:'}]"
|
|
1699460036732,INFO:app.translate_gpt_back_common.services.translator:gpt-3.5-turbo
|
|
1699460036992,INFO:openai:error_code=rate_limit_exceeded error_message='Rate limit reached for gpt-3.5-turbo in organization org-XlrUZKlkhib3WMqW9VzscD41 on requests per min. Limit: 3 / min. Please try again in 20s. Visit https://platform.openai.com/account/rate-limits to learn more. You can increase your rate limit by adding a payment method to your account at https://platform.openai.com/account/billing.' error_param=None error_type=requests message='OpenAI API error received' stream_error=False
|
|
1699460036992,ERROR:app.translate_gpt_back_common.services.translator:RateLimitError
|
|
1699460036992,ERROR:app.translate_gpt_back_common.services.translator:Rate limit reached for gpt-3.5-turbo in organization org-XlrUZKlkhib3WMqW9VzscD41 on requests per min. Limit: 3 / min. Please try again in 20s. Visit https://platform.openai.com/account/rate-limits to learn more. You can increase your rate limit by adding a payment method to your account at https://platform.openai.com/account/billing.
|
|
1699460036992,"ERROR:app.translate_gpt_back_common.services.translator:{'error': {'message': 'Rate limit reached for gpt-3.5-turbo in organization org-XlrUZKlkhib3WMqW9VzscD41 on requests per min. Limit: 3 / min. Please try again in 20s. Visit https://platform.openai.com/account/rate-limits to learn more. You can increase your rate limit by adding a payment method to your account at https://platform.openai.com/account/billing.', 'type': 'requests', 'param': None, 'code': 'rate_limit_exceeded'}}"
|
|
1699460036992,ERROR:app.translate_gpt_back_common.services.translator:Traceback (most recent call last):
|
|
1699460036992," File ""/app/app/translate_gpt_back_common/services/translator.py"", line 365, in translate_text"
|
|
1699460036992, else openai.ChatCompletion.create(
|
|
1699460036992, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460036992," File ""/usr/local/lib/python3.11/site-packages/openai/api_resources/chat_completion.py"", line 25, in create"
|
|
1699460036993," return super().create(*args, **kwargs)"
|
|
1699460036993, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460036993," File ""/usr/local/lib/python3.11/site-packages/openai/api_resources/abstract/engine_api_resource.py"", line 153, in create"
|
|
1699460036993," response, _, api_key = requestor.request("
|
|
1699460036993, ^^^^^^^^^^^^^^^^^^
|
|
1699460036993," File ""/usr/local/lib/python3.11/site-packages/openai/api_requestor.py"", line 298, in request"
|
|
1699460036993," resp, got_stream = self._interpret_response(result, stream)"
|
|
1699460036993, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460036993," File ""/usr/local/lib/python3.11/site-packages/openai/api_requestor.py"", line 700, in _interpret_response"
|
|
1699460036993, self._interpret_response_line(
|
|
1699460036993," File ""/usr/local/lib/python3.11/site-packages/openai/api_requestor.py"", line 763, in _interpret_response_line"
|
|
1699460036993, raise self.handle_error_response(
|
|
1699460036993,openai.error.RateLimitError: Rate limit reached for gpt-3.5-turbo in organization org-XlrUZKlkhib3WMqW9VzscD41 on requests per min. Limit: 3 / min. Please try again in 20s. Visit https://platform.openai.com/account/rate-limits to learn more. You can increase your rate limit by adding a payment method to your account at https://platform.openai.com/account/billing.
|
|
1699460036993,ERROR:app.translate_gpt_back_common.services.translator:********************ooMT3BlbkFJ51QaInukCx2jTqAJliFc
|
|
1699460036993,INFO:app.translate_gpt_back_common.services.translator:False
|
|
1699460036993,INFO:app.translate_gpt_back_common.crud.crud_openai_api_key:api_key
|
|
1699460036993,INFO:app.translate_gpt_back_common.crud.crud_openai_api_key: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
|
|
1699460037011,INFO:app.translate_gpt_back_common.services.translator:Using open ai key: ********************KRDT3BlbkFJ0uA88Ml7lPVjeIJU4bT4
|
|
1699460037011,INFO:app.translate_gpt_back_common.services.translator:retry_count 2
|
|
1699460037011,"INFO:app.translate_gpt_back_common.services.translator:[{'role': 'user', 'content': 'original_text: `1. Thay đổi tên tài liệu và mã tài liệu.
|
|
2. Thay đổi định dạng, công thức tính.
|
|
3. Thêm câu hỏi cho vùng dự án Infrastructure`. Translate to vietnamese
|
|
. 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.
|
|
vietnamese text:'}]"
|
|
1699460037011,INFO:app.translate_gpt_back_common.services.translator:gpt-3.5-turbo
|
|
1699460042664,INFO:app.translate_gpt_back_common.services.translator:{
|
|
1699460042664," ""id"": ""chatcmpl-8IfThUlr7TJeox7qgwOnHcfNHEwd8"","
|
|
1699460042664," ""object"": ""chat.completion"","
|
|
1699460042664," ""created"": 1699460037,"
|
|
1699460042664," ""model"": ""gpt-3.5-turbo-0613"","
|
|
1699460042664," ""choices"": ["
|
|
1699460042664, {
|
|
1699460042664," ""index"": 0,"
|
|
1699460042664," ""message"": {"
|
|
1699460042664," ""role"": ""assistant"","
|
|
1699460042664," ""content"": ""1. Thay \u0111\u1ed5i t\u00ean t\u00e0i li\u1ec7u v\u00e0 m\u00e3 t\u00e0i li\u1ec7u.
|
|
2. Thay \u0111\u1ed5i \u0111\u1ecbnh d\u1ea1ng, c\u00f4ng th\u1ee9c t\u00ednh.
|
|
3. Th\u00eam c\u00e2u h\u1ecfi cho v\u00f9ng d\u1ef1 \u00e1n C\u01a1 s\u1edf h\u1ea1 t\u1ea7ng."""
|
|
1699460042664," },"
|
|
1699460042664," ""finish_reason"": ""stop"""
|
|
1699460042664, }
|
|
1699460042664," ],"
|
|
1699460042664," ""usage"": {"
|
|
1699460042664," ""prompt_tokens"": 112,"
|
|
1699460042664," ""completion_tokens"": 62,"
|
|
1699460042664," ""total_tokens"": 174"
|
|
1699460042664, }
|
|
1699460042664,}
|
|
1699460042664,"INFO:app.translate_gpt_back_common.services.translator:result {'result': '1. Thay đổi tên tài liệu và mã tài liệu.
|
|
2. Thay đổi định dạng, công thức tính.
|
|
3. Thêm câu hỏi cho vùng dự án Cơ sở hạ tầng.', 'total_tokens': 174, 'used_model': 'gpt-3.5-turbo-0613', 'prompt_tokens': 112}"
|
|
1699460042664,INFO:app.translate_gpt_back_common.services.translator:input_text : Đặng Ngọc Bảo
|
|
1699460042665,INFO:app.translate_gpt_back_common.services.translator:Using open ai key: ********************KRDT3BlbkFJ0uA88Ml7lPVjeIJU4bT4
|
|
1699460042665,INFO:app.translate_gpt_back_common.services.translator:retry_count 1
|
|
1699460042665,"INFO:app.translate_gpt_back_common.services.translator:[{'role': 'user', 'content': 'original_text: `Đặng Ngọc Bảo`. Translate to vietnamese
|
|
. 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.
|
|
vietnamese text:'}]"
|
|
1699460042665,INFO:app.translate_gpt_back_common.services.translator:gpt-3.5-turbo
|
|
1699460044470,INFO:app.translate_gpt_back_common.services.translator:{
|
|
1699460044470," ""id"": ""chatcmpl-8IfTn7MdUzrj4TQErF2siq5SGH4D7"","
|
|
1699460044470," ""object"": ""chat.completion"","
|
|
1699460044470," ""created"": 1699460043,"
|
|
1699460044470," ""model"": ""gpt-3.5-turbo-0613"","
|
|
1699460044470," ""choices"": ["
|
|
1699460044470, {
|
|
1699460044470," ""index"": 0,"
|
|
1699460044470," ""message"": {"
|
|
1699460044470," ""role"": ""assistant"","
|
|
1699460044470," ""content"": ""\u0110\u1eb7ng Ng\u1ecdc B\u1ea3o"""
|
|
1699460044470," },"
|
|
1699460044470," ""finish_reason"": ""stop"""
|
|
1699460044470, }
|
|
1699460044470," ],"
|
|
1699460044470," ""usage"": {"
|
|
1699460044470," ""prompt_tokens"": 67,"
|
|
1699460044470," ""completion_tokens"": 8,"
|
|
1699460044470," ""total_tokens"": 75"
|
|
1699460044470, }
|
|
1699460044470,}
|
|
1699460044470,"INFO:app.translate_gpt_back_common.services.translator:result {'result': 'Đặng Ngọc Bảo', 'total_tokens': 75, 'used_model': 'gpt-3.5-turbo-0613', 'prompt_tokens': 67}"
|
|
1699460044470,INFO:app.translate_gpt_back_common.services.translator:input_text : Document history
|
|
1699460044470,INFO:app.translate_gpt_back_common.services.translator:Using open ai key: ********************KRDT3BlbkFJ0uA88Ml7lPVjeIJU4bT4
|
|
1699460044470,INFO:app.translate_gpt_back_common.services.translator:retry_count 1
|
|
1699460044470,"INFO:app.translate_gpt_back_common.services.translator:[{'role': 'user', 'content': 'original_text: `Document history`. Translate to vietnamese
|
|
. 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.
|
|
vietnamese text:'}]"
|
|
1699460044470,INFO:app.translate_gpt_back_common.services.translator:gpt-3.5-turbo
|
|
1699460046023,INFO:app.translate_gpt_back_common.services.translator:{
|
|
1699460046023," ""id"": ""chatcmpl-8IfTo3Fqn9ySYB47AlO4sY2PDKfpT"","
|
|
1699460046023," ""object"": ""chat.completion"","
|
|
1699460046023," ""created"": 1699460044,"
|
|
1699460046023," ""model"": ""gpt-3.5-turbo-0613"","
|
|
1699460046023," ""choices"": ["
|
|
1699460046023, {
|
|
1699460046023," ""index"": 0,"
|
|
1699460046023," ""message"": {"
|
|
1699460046023," ""role"": ""assistant"","
|
|
1699460046023," ""content"": ""L\u1ecbch s\u1eed t\u00e0i li\u1ec7u."""
|
|
1699460046023," },"
|
|
1699460046023," ""finish_reason"": ""stop"""
|
|
1699460046023, }
|
|
1699460046023," ],"
|
|
1699460046023," ""usage"": {"
|
|
1699460046023," ""prompt_tokens"": 61,"
|
|
1699460046023," ""completion_tokens"": 9,"
|
|
1699460046023," ""total_tokens"": 70"
|
|
1699460046023, }
|
|
1699460046023,}
|
|
1699460046023,"INFO:app.translate_gpt_back_common.services.translator:result {'result': 'Lịch sử tài liệu.', 'total_tokens': 70, 'used_model': 'gpt-3.5-turbo-0613', 'prompt_tokens': 61}"
|
|
1699460046023,"INFO:app.translate_gpt_back_common.services.translator:list_res : ['paragraph_id 322: 8. Vui lòng đánh giá cam kết của đội ngũ chúng tôi trong việc giải quyết các sự cố khẩn cấp.', 'paragraph_id 323: 9. Vui lòng đánh giá sự hiểu biết và tuân thủ quy trình/ quy trình làm việc/ quy tắc của nhân viên.', 'paragraph_id 324: IV. Hợp tác', 'paragraph_id 325: 10. Vui lòng đánh giá sự cộng tác của nhân viên tại nơi làm việc? (trách nhiệm, sự nhiệt huyết, tinh thần làm việc,...)', 'paragraph_id 326: 11. Mối quan hệ giữa nhân viên của chúng tôi (hoặc CMC) và bạn như thế nào?', 'paragraph_id 327: CSS Quy định Điểm_Infra', 'paragraph_id 328: Phiên bản', 'paragraph_id 329: Ngày hiệu lực.', 'paragraph_id 330: Nội dung sửa đổi.', 'paragraph_id 331: Người duyệt', 'paragraph_id 332: Tạo mới', 'paragraph_id 333: 1, Nguyễn Quốc Sử.', 'paragraph_id 334: 1. Thay đổi tên tài liệu và mã tài liệu.
|
|
2. Thay đổi định dạng, công thức tính.
|
|
3. Thêm câu hỏi cho vùng dự án Cơ sở hạ tầng.', 'paragraph_id 335: Đặng Ngọc Bảo', 'paragraph_id 336: Lịch sử tài liệu.']"
|
|
1699460046023,INFO:app.translate_gpt_back_common.services.translator:Prompt tokens: 4819
|
|
1699460046023,INFO:app.translate_gpt_back_common.services.translator:Used total tokens: 12776
|
|
1699460046095,INFO:app.translate_gpt_back_common.services.translator:save_stranslated_2_file: tmp/uploaded/7/20231108_142412_207351/DEV.PM.BM.01.11_CSSOP v1.1_vietnamese_translated.xlsx
|
|
1699460046260,ERROR:__main__:Translate and send result failed
|
|
1699460046261,"ERROR:__main__:sequence item 0: expected str instance, ArrayFormula found"
|
|
1699460046261,Traceback (most recent call last):
|
|
1699460046261," File ""/app/worker.py"", line 93, in main"
|
|
1699460046261, translate_result = await translate_and_send_result(
|
|
1699460046261, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046261," File ""/app/app/translate_gpt_back_common/jobs/translate_and_send_result.py"", line 147, in translate_and_send_result"
|
|
1699460046261, res = await tran_service.translate(
|
|
1699460046261, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046261," File ""/app/app/translate_gpt_back_common/services/translator.py"", line 552, in translate"
|
|
1699460046261," self.save_stranslated_2_file(input_file_path, results_dict, output_file_path, part_translate)"
|
|
1699460046261," File ""/app/app/translate_gpt_back_common/services/translator_xlsx.py"", line 162, in save_stranslated_2_file"
|
|
1699460046261," translated_formula = """".join([formula_s[1] for formula_s in formula_info_list])"
|
|
1699460046261, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046261,"TypeError: sequence item 0: expected str instance, ArrayFormula found"
|
|
1699460046263,ERROR:__main__:Traceback (most recent call last):
|
|
1699460046263," File ""/app/worker.py"", line 93, in main"
|
|
1699460046263, translate_result = await translate_and_send_result(
|
|
1699460046263, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046263," File ""/app/app/translate_gpt_back_common/jobs/translate_and_send_result.py"", line 147, in translate_and_send_result"
|
|
1699460046263, res = await tran_service.translate(
|
|
1699460046263, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046263," File ""/app/app/translate_gpt_back_common/services/translator.py"", line 552, in translate"
|
|
1699460046263," self.save_stranslated_2_file(input_file_path, results_dict, output_file_path, part_translate)"
|
|
1699460046263," File ""/app/app/translate_gpt_back_common/services/translator_xlsx.py"", line 162, in save_stranslated_2_file"
|
|
1699460046263," translated_formula = """".join([formula_s[1] for formula_s in formula_info_list])"
|
|
1699460046263, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046263,"TypeError: sequence item 0: expected str instance, ArrayFormula found"
|
|
1699460046263,Traceback (most recent call last):
|
|
1699460046263," File ""/app/worker.py"", line 93, in main"
|
|
1699460046263, translate_result = await translate_and_send_result(
|
|
1699460046263, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046263," File ""/app/app/translate_gpt_back_common/jobs/translate_and_send_result.py"", line 147, in translate_and_send_result"
|
|
1699460046263, res = await tran_service.translate(
|
|
1699460046263, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046263," File ""/app/app/translate_gpt_back_common/services/translator.py"", line 552, in translate"
|
|
1699460046263," self.save_stranslated_2_file(input_file_path, results_dict, output_file_path, part_translate)"
|
|
1699460046263," File ""/app/app/translate_gpt_back_common/services/translator_xlsx.py"", line 162, in save_stranslated_2_file"
|
|
1699460046263," translated_formula = """".join([formula_s[1] for formula_s in formula_info_list])"
|
|
1699460046263, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046263,"TypeError: sequence item 0: expected str instance, ArrayFormula found"
|
|
1699460046263,ERROR:__main__:7d0745e4-7e42-11ee-abdc-0a58a9feac02
|
|
1699460046263,Traceback (most recent call last):
|
|
1699460046263," File ""/app/worker.py"", line 93, in main"
|
|
1699460046263, translate_result = await translate_and_send_result(
|
|
1699460046263, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046263," File ""/app/app/translate_gpt_back_common/jobs/translate_and_send_result.py"", line 147, in translate_and_send_result"
|
|
1699460046263, res = await tran_service.translate(
|
|
1699460046263, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046263," File ""/app/app/translate_gpt_back_common/services/translator.py"", line 552, in translate"
|
|
1699460046263," self.save_stranslated_2_file(input_file_path, results_dict, output_file_path, part_translate)"
|
|
1699460046263," File ""/app/app/translate_gpt_back_common/services/translator_xlsx.py"", line 162, in save_stranslated_2_file"
|
|
1699460046263," translated_formula = """".join([formula_s[1] for formula_s in formula_info_list])"
|
|
1699460046263, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1699460046263,"TypeError: sequence item 0: expected str instance, ArrayFormula found"
|
|
1699460046285,INFO:app.translate_gpt_back_common.helpers.email_helper:Send translated file failed notice email
|
|
1699460046324,INFO:app.translate_gpt_back_common.helpers.email_helper:Message 0e5e0a07-73c6-4c3a-a269-8a11bf4b9e57 sent to queue: https://sqs.ap-southeast-1.amazonaws.com/449813343309/cdk-translate-gpt-prod-send-email-queue
|
|
1699460046324,INFO:Firebase client:Add notification to firebase START
|
|
1699460046892,INFO:Firebase client:Add notification to firebase END
|
|
1699460046892,INFO:__main__:Translate and send result END
|
|
1699460046893,INFO:__main__:File deleted: tmp/uploaded/7/20231108_142412_207351/DEV.PM.BM.01.11_CSSOP v1.1.xlsx
|
|
1699460047020,ERROR:sqlalchemy.pool.impl.QueuePool:Exception during reset or similar
|
|
1699460047021,Traceback (most recent call last):
|
|
1699460047021," File ""/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py"", line 988, in _finalize_fairy"
|
|
1699460047021, fairy._reset(
|
|
1699460047021," File ""/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py"", line 1436, in _reset"
|
|
1699460047021, pool._dialect.do_rollback(self)
|
|
1699460047021," File ""/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py"", line 691, in do_rollback"
|
|
1699460047021, dbapi_connection.rollback()
|
|
1699460047021," File ""/usr/local/lib/python3.11/site-packages/pymysql/connections.py"", line 482, in rollback"
|
|
1699460047021, self._read_ok_packet()
|
|
1699460047021," File ""/usr/local/lib/python3.11/site-packages/pymysql/connections.py"", line 442, in _read_ok_packet"
|
|
1699460047021, pkt = self._read_packet()
|
|
1699460047021, ^^^^^^^^^^^^^^^^^^^
|
|
1699460047021," File ""/usr/local/lib/python3.11/site-packages/pymysql/connections.py"", line 696, in _read_packet"
|
|
1699460047021, packet_header = self._read_bytes(4)
|
|
1699460047021, ^^^^^^^^^^^^^^^^^^^
|
|
1699460047021," File ""/usr/local/lib/python3.11/site-packages/pymysql/connections.py"", line 752, in _read_bytes"
|
|
1699460047021, raise err.OperationalError(
|
|
1699460047021,"pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')"
|