mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-30 21:00:30 +08:00
feat(hermes): add prompt caching settings
This commit is contained in:
@@ -674,6 +674,17 @@ export default {
|
||||
hermesCompressionProtectFirstN: _('保护开头消息数', 'Protect first messages', '保護開頭訊息數'),
|
||||
hermesCompressionAbortOnSummaryFailure: _('摘要失败时中止回复', 'Abort when summarization fails', '摘要失敗時中止回覆'),
|
||||
hermesCompressionFootnote: _('阈值和目标比例越低,压缩越早、越激进。建议先使用默认值,再根据真实 Gateway 日志调整。', 'Lower thresholds and target ratios compress earlier and more aggressively. Start with the defaults, then tune with real Gateway logs.', '閾值和目標比例越低,壓縮越早、越激進。建議先使用預設值,再根據真實 Gateway 日誌調整。'),
|
||||
hermesPromptCachingConfigTitle: _('提示缓存', 'Prompt caching', '提示快取'),
|
||||
hermesPromptCachingConfigDesc: _('控制 Anthropic/OpenRouter 前缀缓存 TTL。长跑任务如果回合间隔较长,可以选择 1 小时以降低重复上下文成本。', 'Control the Anthropic/OpenRouter prefix cache TTL. For long runs with longer pauses between turns, choose 1 hour to reduce repeated context cost.', '控制 Anthropic/OpenRouter 前綴快取 TTL。長跑任務如果回合間隔較長,可以選擇 1 小時以降低重複上下文成本。'),
|
||||
hermesPromptCachingConfigStatusReady: _('结构化配置', 'structured settings', '結構化設定'),
|
||||
hermesPromptCachingConfigSave: _('保存提示缓存', 'Save prompt caching', '儲存提示快取'),
|
||||
hermesPromptCachingConfigSaveSuccess: _('提示缓存配置已保存,建议重启 Hermes Gateway 生效', 'Prompt caching settings saved. Restart Hermes Gateway to take effect.', '提示快取設定已儲存,建議重啟 Hermes Gateway 生效'),
|
||||
hermesPromptCachingConfigLoadFailed: _('加载提示缓存配置失败', 'Load prompt caching settings failed', '載入提示快取設定失敗'),
|
||||
hermesPromptCachingConfigSaveFailed: _('保存提示缓存配置失败', 'Save prompt caching settings failed', '儲存提示快取設定失敗'),
|
||||
hermesPromptCachingConfigCacheTtl: _('缓存有效期', 'Cache TTL', '快取有效期'),
|
||||
hermesPromptCachingConfigCacheTtl_5m: _('5 分钟(默认)', '5 minutes (default)', '5 分鐘(預設)'),
|
||||
hermesPromptCachingConfigCacheTtl_1h: _('1 小时(长跑)', '1 hour (long runs)', '1 小時(長跑)'),
|
||||
hermesPromptCachingConfigFootnote: _('这里写入 prompt_caching.cache_ttl。上游仅支持 5m 和 1h;其他 prompt_caching 高级字段会保留在 raw YAML 中。', 'This writes prompt_caching.cache_ttl. Upstream only supports 5m and 1h; other advanced prompt_caching fields stay in raw YAML.', '這裡寫入 prompt_caching.cache_ttl。上游僅支援 5m 和 1h;其他 prompt_caching 進階欄位會保留在 raw YAML 中。'),
|
||||
hermesToolGuardrailsTitle: _('工具循环防护', 'Tool loop guardrails', '工具循環防護'),
|
||||
hermesToolGuardrailsDesc: _('当 Agent 重复失败或反复执行无进展工具时,先给模型修正提示;开启硬停止后可主动中止失控循环。', 'Warn the model when tools repeat failures or make no progress. Enable hard stops to halt runaway loops before they spend the full turn budget.', '當 Agent 重複失敗或反覆執行無進展工具時,先給模型修正提示;啟用硬停止後可主動中止失控循環。'),
|
||||
hermesToolGuardrailsStatusReady: _('结构化配置', 'structured settings', '結構化設定'),
|
||||
|
||||
Reference in New Issue
Block a user