Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frontend/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,9 @@
"currentUsage": "Current Usage",
"today": "Today",
"month": "This Month",
"maxToolRounds": "Model Step Limit",
"maxToolRoundsLabel": "Maximum model steps per run",
"maxToolRoundsDesc": "Each model step that returns a result counts, including wait or error results. Tool-call count is separate. Default: 50",
"saveSettings": "Save Settings",
"save": "Save",
"saving": "Saving...",
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/i18n/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,9 @@
"currentUsage": "当前用量",
"today": "今日",
"month": "本月",
"maxToolRounds": "最大工具调用轮次",
"maxToolRoundsLabel": "每条消息的最大轮次",
"maxToolRoundsDesc": "智能体每条消息可执行的工具调用轮次数(搜索、写入等)。默认值:50",
"maxToolRounds": "模型决策步数上限",
"maxToolRoundsLabel": "单次任务的最大模型决策步数",
"maxToolRoundsDesc": "模型决策步骤返回结果时即计入,包括等待或错误结果;工具调用次数单独计算。默认值:50",
"saveSettings": "保存设置",
"save": "保存",
"saving": "保存中...",
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/agent-detail/tabs/SettingsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ export default function SettingsTab(props: Props) {
</div>

<div className="card" style={{ marginBottom: '12px' }}>
<h4 style={{ marginBottom: '12px', display: 'flex', alignItems: 'center', gap: '6px' }}><IconTools size={16} stroke={1.8} /> {t('agent.settings.maxToolRounds', 'Max Tool Call Rounds')}</h4>
<h4 style={{ marginBottom: '12px', display: 'flex', alignItems: 'center', gap: '6px' }}><IconTools size={16} stroke={1.8} /> {t('agent.settings.maxToolRounds', 'Model Step Limit')}</h4>
<div>
<label style={{ display: 'block', fontSize: '13px', fontWeight: 500, marginBottom: '6px' }}>{t('agent.settings.maxToolRoundsLabel', 'Maximum rounds per message')}</label>
<label style={{ display: 'block', fontSize: '13px', fontWeight: 500, marginBottom: '6px' }}>{t('agent.settings.maxToolRoundsLabel', 'Maximum model steps per run')}</label>
<input
className="input"
type="number"
Expand All @@ -178,7 +178,7 @@ export default function SettingsTab(props: Props) {
onChange={(e) => setSettingsForm((form) => ({ ...form, max_tool_rounds: Math.max(5, Math.min(200, parseInt(e.target.value) || 50)) }))}
style={{ width: '120px' }}
/>
<div style={{ fontSize: '11px', color: 'var(--text-tertiary)', marginTop: '4px' }}>{t('agent.settings.maxToolRoundsDesc', 'How many tool-calling rounds the agent can perform per message (search, write, etc). Default: 50')}</div>
<div style={{ fontSize: '11px', color: 'var(--text-tertiary)', marginTop: '4px' }}>{t('agent.settings.maxToolRoundsDesc', 'Each model step that returns a result counts, including wait or error results. Tool-call count is separate. Default: 50')}</div>
</div>
</div>

Expand Down