From c1826030abd8cbee967ebb307fbe1ee4108e9af2 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Sun, 10 May 2026 00:18:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E4=BF=AE=E6=AD=A3=20LLM=20?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E8=B6=85=E6=97=B6=E6=96=87=E6=A1=88=E4=B8=8E?= =?UTF-8?q?=E5=AE=9E=E9=99=85=E8=A1=8C=E4=B8=BA=E4=B8=80=E8=87=B4=EF=BC=8C?= =?UTF-8?q?=E4=B8=8A=E9=99=90=E6=94=BE=E5=AE=BD=E8=87=B3=203600s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 前端原文案'0 表示无限等待(不推荐)'与后端实际行为不符—— internal/agent/const.go 中 getLLMCallTimeout 在配置为 0 时回退到 defaultLLMCallTimeout (120s),并不会无限等待,文案误导用户。 - 同步 zh-CN/en-US/ru-RU/ko-KR 四种语言 hint 为'0 表示使用默认值(120s)' - placeholder 推荐范围由 60-600 调整为 60-1800,与后端兜底超时上调保持一致 - AgentEditorModal 输入框 :max 由 600 放宽到 3600,避免长推理模型场景被卡住 --- frontend/src/i18n/locales/en-US.ts | 4 ++-- frontend/src/i18n/locales/ko-KR.ts | 4 ++-- frontend/src/i18n/locales/ru-RU.ts | 4 ++-- frontend/src/i18n/locales/zh-CN.ts | 4 ++-- frontend/src/views/agent/AgentEditorModal.vue | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index ef323dff..ed45e1e3 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -3925,8 +3925,8 @@ export default { llmCallTimeout: { label: "LLM Call Timeout", desc: "Maximum waiting time for a single LLM call (seconds). Call will be terminated if this time is exceeded", - hint: "0 means unlimited wait (not recommended)", - placeholder: "Enter seconds, recommended range 60-600", + hint: "Leave empty or 0 to use the default (120 seconds)", + placeholder: "Enter seconds, recommended range 60-1800", }, imageUpload: { navLabel: 'Multimodal', diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index 3624f0f0..7996294d 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -3993,8 +3993,8 @@ export default { llmCallTimeout: { label: "LLM 호출 타임아웃", desc: "단일 LLM 호출의 최대 대기 시간(초)입니다. 이 시간을 초과하면 호출이 중단됩니다", - hint: "0은 무제한 대기를 의미합니다 (권장하지 않음)", - placeholder: "초 단위로 입력하세요. 권장 범위 60-600", + hint: "비워두거나 0이면 기본값(120초)을 사용합니다", + placeholder: "초 단위로 입력하세요. 권장 범위 60-1800", }, imageUpload: { navLabel: '멀티모달', diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index 02e74dd2..f2721b27 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -3602,8 +3602,8 @@ export default { llmCallTimeout: { label: 'Таймаут вызова LLM', desc: 'Максимальное время ожидания одного вызова LLM (в секундах). По истечении этого времени вызов прерывается', - hint: '0 означает бесконечное ожидание (не рекомендуется)', - placeholder: 'Введите количество секунд, рекомендуемый диапазон 60-600', + hint: 'Оставьте пустым или 0, чтобы использовать значение по умолчанию (120 секунд)', + placeholder: 'Введите количество секунд, рекомендуемый диапазон 60-1800', }, imageUpload: { navLabel: 'Мультимодальность', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 43e04f36..2f0a0673 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -3922,8 +3922,8 @@ export default { llmCallTimeout: { label: "LLM 调用超时", desc: "单次 LLM 调用的最大等待时间(秒),超过此时间后调用将被中止", - hint: "0 表示无限等待(不推荐)", - placeholder: "输入秒数,建议范围 60-600", + hint: "留空或填 0 表示使用默认值(120 秒)", + placeholder: "输入秒数,建议范围 60-1800", }, imageUpload: { navLabel: "多模态", diff --git a/frontend/src/views/agent/AgentEditorModal.vue b/frontend/src/views/agent/AgentEditorModal.vue index c54daab0..82dcb2f4 100644 --- a/frontend/src/views/agent/AgentEditorModal.vue +++ b/frontend/src/views/agent/AgentEditorModal.vue @@ -758,8 +758,8 @@