Commit graph

24 commits

Author SHA1 Message Date
Jicheng Lu 64dca85d77 add translation memory 2024-06-14 15:39:56 -05:00
易磊 57b522fe42
Update TranslationService.cs
修复空白字符串AI不翻译返回导致数组越界的问题
2024-06-13 15:59:13 +08:00
易磊 80a60b23eb
Update TranslationService.cs
add using
2024-05-22 20:12:15 +08:00
易磊 adc6486345
Update TranslationService.cs
hotfix json escaped question
error:
[ERR] [] '<' is not a hex digit following '\u' within a JSON string. The string should be correctly escaped. Path: $.texts[0].text | LineNumber: 0 | BytePositionInLine: 411.

json:
{"input_lang":"English", "output_count":3, "output_lang":"Spanish", "texts":[{"id":1,"text":"Aquí hay un resumen de los horarios que ha indicado que está disponible. Las fechas no están confirmadas. El técnico revisará y se pondrá en contacto para programar.\u003Cp\u003E\u003Cb\u003EJueves, 23 de mayo de 2024\u003C/b\u003E\u003C/br\u003ETodo el día (08:00 AM - 08:00 PM)\u003C/p\u003E\u003Cp\u003E\u003<b>Viernes, 24 de mayo de 2024\u003C/b\u003E\u003C/br\u003EMañana (08:00 AM - 01:00 PM)\u003C/p\u003E\u003Cp\u003E\u003<b>Lunes, 27 de mayo de 2024\u003C/b\u003E\u003C/br\u003ETarde (01:00 PM - 08:00 PM)\u003C/p\u003E"},{"id":2,"text":"Se ve bien"},{"id":3,"text":"Empezar de nuevo"}]}
2024-05-22 14:53:36 +08:00
Haiping Chen 343f3b91ab Retry language translation. 2024-05-21 22:07:26 -05:00
Haiping Chen 6a0a400500 Fix SSE response format. 2024-05-21 12:02:06 -05:00
Haiping Chen 2147d69ecf translation improvement. 2024-05-20 21:13:12 -05:00
Haiping Chen efdf5a30da Improve translation. 2024-05-20 12:54:38 -05:00
C. Oceania c29e76c184
Update TranslationService.cs 2024-05-14 15:28:24 -05:00
Haiping Chen 535e20ea90 Fix map key. 2024-05-14 14:47:36 -05:00
Haiping Chen ed9e6457fe Fix translation issue. 2024-05-14 13:45:20 -05:00
Haiping Chen d12954824b All exclude some states when cleaning states. 2024-05-13 08:58:26 -05:00
Haiping Chen e620d5d161 Not set language if exists. 2024-05-10 21:59:51 -05:00
Haiping Chen 76dc9080ad Fix translator. 2024-05-09 15:59:59 -05:00
Jicheng Lu 0ab2e4d041 unite json serializer 2024-05-08 11:47:21 -05:00
C. Oceania 3ab3bc8652
Merge pull request #430 from hchen2020/master
Fix language detection.
2024-04-25 11:29:41 -05:00
Haiping Chen b43dfbac01 Fix language detection. 2024-04-25 11:27:51 -05:00
Jicheng Lu bb0884e4cc refine type check 2024-04-25 10:58:28 -05:00
Jicheng Lu 349cc7e44b minor change 2024-04-23 23:47:38 -05:00
Joanna Ren ab3c6089a6 update language detection 2024-04-23 17:13:38 -05:00
Haiping Chen 06974977e7 translation prompt. 2024-04-23 14:02:00 -05:00
Jicheng Lu ba854c2dec minor change 2024-04-23 11:27:20 -05:00
Jicheng Lu 9381fa951d add translate service 2024-04-23 11:25:05 -05:00
Jicheng Lu f09c22b90c temp save 2024-04-22 14:29:21 -05:00