mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add configurable reasoning effort to Coder agents (#26974)
This commit is contained in:
+127
-21
@@ -7,16 +7,47 @@ INSERT INTO chat_providers (
|
||||
enabled,
|
||||
created_at,
|
||||
updated_at
|
||||
) VALUES (
|
||||
'0a8b2f84-b5a8-4c44-8c9f-e58c44a534a7',
|
||||
'openai',
|
||||
'OpenAI',
|
||||
'',
|
||||
NULL,
|
||||
TRUE,
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
);
|
||||
) VALUES
|
||||
(
|
||||
'0a8b2f84-b5a8-4c44-8c9f-e58c44a534a7',
|
||||
'openai',
|
||||
'OpenAI',
|
||||
'',
|
||||
NULL,
|
||||
TRUE,
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
),
|
||||
(
|
||||
'4f0a9c2e-1d3b-4a5c-8e7f-6a9b8c7d6e02',
|
||||
'anthropic',
|
||||
'Anthropic (Reasoning Effort Fixture)',
|
||||
'',
|
||||
NULL,
|
||||
TRUE,
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
),
|
||||
(
|
||||
'4f0a9c2e-1d3b-4a5c-8e7f-6a9b8c7d6e03',
|
||||
'azure',
|
||||
'Azure OpenAI (Reasoning Effort Fixture)',
|
||||
'',
|
||||
NULL,
|
||||
TRUE,
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
),
|
||||
(
|
||||
'4f0a9c2e-1d3b-4a5c-8e7f-6a9b8c7d6e04',
|
||||
'bedrock',
|
||||
'Bedrock (Reasoning Effort Fixture)',
|
||||
'',
|
||||
NULL,
|
||||
TRUE,
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
);
|
||||
|
||||
INSERT INTO chat_model_configs (
|
||||
id,
|
||||
@@ -26,19 +57,94 @@ INSERT INTO chat_model_configs (
|
||||
enabled,
|
||||
context_limit,
|
||||
compression_threshold,
|
||||
options,
|
||||
created_at,
|
||||
updated_at
|
||||
) VALUES (
|
||||
'9af5f8d5-6a57-4505-8a69-3d6c787b95fd',
|
||||
'openai',
|
||||
'gpt-5.2',
|
||||
'GPT 5.2',
|
||||
TRUE,
|
||||
200000,
|
||||
70,
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
);
|
||||
) VALUES
|
||||
(
|
||||
'9af5f8d5-6a57-4505-8a69-3d6c787b95fd',
|
||||
'openai',
|
||||
'gpt-5.2',
|
||||
'GPT 5.2',
|
||||
TRUE,
|
||||
200000,
|
||||
70,
|
||||
'{}'::jsonb,
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
),
|
||||
(
|
||||
'4f0a9c2e-1d3b-4a5c-8e7f-6a9b8c7d6f01',
|
||||
'openai',
|
||||
'gpt-5.1',
|
||||
'GPT-5.1 (Legacy Effort)',
|
||||
TRUE,
|
||||
200000,
|
||||
70,
|
||||
'{"provider_options": {"openai": {"reasoning_effort": " HIGH ", "reasoning_summary": "auto"}}}',
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
),
|
||||
(
|
||||
'4f0a9c2e-1d3b-4a5c-8e7f-6a9b8c7d6f02',
|
||||
'anthropic',
|
||||
'claude-opus-4-6',
|
||||
'Claude Opus (Legacy Effort)',
|
||||
TRUE,
|
||||
200000,
|
||||
70,
|
||||
'{"provider_options": {"anthropic": {"effort": "max", "send_reasoning": true}}}',
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
),
|
||||
(
|
||||
'4f0a9c2e-1d3b-4a5c-8e7f-6a9b8c7d6f05',
|
||||
'azure',
|
||||
'gpt-5.1-azure',
|
||||
'Azure GPT-5.1 (Legacy Effort)',
|
||||
TRUE,
|
||||
200000,
|
||||
70,
|
||||
'{"provider_options": {"azure": {"reasoning_effort": "low"}}}',
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
),
|
||||
(
|
||||
'4f0a9c2e-1d3b-4a5c-8e7f-6a9b8c7d6f06',
|
||||
'bedrock',
|
||||
'anthropic.claude-opus-4-6',
|
||||
'Bedrock Claude Opus (Legacy Effort)',
|
||||
TRUE,
|
||||
200000,
|
||||
70,
|
||||
'{"provider_options": {"bedrock": {"effort": "minimal"}}}',
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
),
|
||||
(
|
||||
'4f0a9c2e-1d3b-4a5c-8e7f-6a9b8c7d6f03',
|
||||
'openai',
|
||||
'gpt-5.1-empty-effort',
|
||||
'GPT-5.1 (Empty Legacy Effort)',
|
||||
TRUE,
|
||||
200000,
|
||||
70,
|
||||
'{"provider_options": {"openai": {"reasoning_effort": ""}}}',
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
),
|
||||
(
|
||||
'4f0a9c2e-1d3b-4a5c-8e7f-6a9b8c7d6f04',
|
||||
'openai',
|
||||
'gpt-5.1-invalid-effort',
|
||||
'GPT-5.1 (Invalid Legacy Effort)',
|
||||
TRUE,
|
||||
200000,
|
||||
70,
|
||||
'{"provider_options": {"openai": {"reasoning_effort": "extreme"}}}',
|
||||
'2024-01-01 00:00:00+00',
|
||||
'2024-01-01 00:00:00+00'
|
||||
);
|
||||
|
||||
INSERT INTO chats (
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user