修复默认推理强度测试
同步运行时配置测试对 high 默认 reasoning effort 的断言 保留策划 Agent 伪流式显示的降速调整
This commit is contained in:
@@ -808,12 +808,12 @@ export function App({
|
||||
return target;
|
||||
}
|
||||
const remaining = target.length - prefix.length;
|
||||
const step = remaining > 160 ? 8 : remaining > 48 ? 4 : 2;
|
||||
const step = remaining > 160 ? 4 : remaining > 48 ? 2 : 1;
|
||||
const next = target.slice(0, prefix.length + step);
|
||||
planningV2VisibleReplyRef.current = next;
|
||||
return next;
|
||||
});
|
||||
}, 32);
|
||||
}, 50);
|
||||
return () => window.clearInterval(timer);
|
||||
}, []);
|
||||
|
||||
|
||||
@@ -620,7 +620,7 @@ function createProjectSupervisorRuntimeHarness({
|
||||
baseUrl: '',
|
||||
model: 'quality',
|
||||
apiKind: 'openai_responses',
|
||||
reasoningEffort: 'max',
|
||||
reasoningEffort: 'high',
|
||||
stream: true,
|
||||
webSearchEnabled: true,
|
||||
contextWindowTokens: 128000,
|
||||
|
||||
@@ -1000,7 +1000,7 @@ export function registerPublishedRuntimeSettingsTests() {
|
||||
expect(screen.queryByLabelText('LLM API Key')).toBeNull();
|
||||
expect(screen.queryByLabelText('LLM Base URL')).toBeNull();
|
||||
expect(screen.queryByLabelText('LLM 模型')).toBeNull();
|
||||
expect(screen.getByLabelText('推理档')).toHaveProperty('value', 'max');
|
||||
expect(screen.getByLabelText('推理档')).toHaveProperty('value', 'high');
|
||||
expect(screen.getByLabelText('联网检索')).toHaveProperty('checked', true);
|
||||
fireEvent.click(screen.getByRole('button', { name: /Agent 分工/ }));
|
||||
expect(screen.getByText('所有角色使用统一账号服务')).not.toBeNull();
|
||||
@@ -1031,7 +1031,7 @@ export function registerPublishedRuntimeSettingsTests() {
|
||||
baseUrl: '',
|
||||
model: '',
|
||||
apiKind: 'openai_responses',
|
||||
reasoningEffort: 'max',
|
||||
reasoningEffort: 'high',
|
||||
stream: true,
|
||||
webSearchEnabled: true,
|
||||
contextWindowTokens: 128000,
|
||||
|
||||
Reference in New Issue
Block a user