Skip to content

Commit f926231

Browse files
committed
mftomi
1 parent 806889e commit f926231

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

codex-rs/core/src/models_manager/model_info.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,15 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo {
9595
model_info!(
9696
slug,
9797
base_instructions: BASE_INSTRUCTIONS_WITH_APPLY_PATCH.to_string(),
98+
supports_reasoning_summaries: true,
9899
context_window: 200_000,
99100
)
100101
} else if slug.starts_with("codex-mini-latest") {
101102
model_info!(
102103
slug,
103104
base_instructions: BASE_INSTRUCTIONS_WITH_APPLY_PATCH.to_string(),
104105
shell_type: ConfigShellToolType::Local,
106+
supports_reasoning_summaries: true,
105107
context_window: 200_000,
106108
)
107109
} else if slug.starts_with("gpt-4.1") {
@@ -142,6 +144,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo {
142144
"test_sync_tool".to_string(),
143145
],
144146
supports_parallel_tool_calls: true,
147+
supports_reasoning_summaries: true,
145148
shell_type: ConfigShellToolType::ShellCommand,
146149
support_verbosity: true,
147150
truncation_policy: TruncationPolicyConfig::tokens(10_000),
@@ -153,6 +156,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo {
153156
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
154157
shell_type: ConfigShellToolType::ShellCommand,
155158
supports_parallel_tool_calls: true,
159+
supports_reasoning_summaries: true,
156160
support_verbosity: false,
157161
truncation_policy: TruncationPolicyConfig::tokens(10_000),
158162
context_window: CONTEXT_WINDOW_272K,
@@ -161,6 +165,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo {
161165
model_info!(
162166
slug,
163167
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
168+
supports_reasoning_summaries: true,
164169
support_verbosity: true,
165170
default_verbosity: Some(Verbosity::Low),
166171
base_instructions: BASE_INSTRUCTIONS.to_string(),
@@ -176,6 +181,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo {
176181
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
177182
shell_type: ConfigShellToolType::ShellCommand,
178183
supports_parallel_tool_calls: true,
184+
supports_reasoning_summaries: true,
179185
support_verbosity: false,
180186
truncation_policy: TruncationPolicyConfig::tokens(10_000),
181187
context_window: CONTEXT_WINDOW_272K,
@@ -188,6 +194,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo {
188194
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
189195
shell_type: ConfigShellToolType::ShellCommand,
190196
supports_parallel_tool_calls: false,
197+
supports_reasoning_summaries: true,
191198
support_verbosity: false,
192199
truncation_policy: TruncationPolicyConfig::tokens(10_000),
193200
context_window: CONTEXT_WINDOW_272K,
@@ -204,6 +211,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo {
204211
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
205212
shell_type: ConfigShellToolType::ShellCommand,
206213
supports_parallel_tool_calls: false,
214+
supports_reasoning_summaries: true,
207215
support_verbosity: false,
208216
truncation_policy: TruncationPolicyConfig::tokens(10_000),
209217
context_window: CONTEXT_WINDOW_272K,
@@ -219,6 +227,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo {
219227
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
220228
shell_type: ConfigShellToolType::ShellCommand,
221229
supports_parallel_tool_calls: false,
230+
supports_reasoning_summaries: true,
222231
support_verbosity: false,
223232
truncation_policy: TruncationPolicyConfig::tokens(10_000),
224233
context_window: CONTEXT_WINDOW_272K,
@@ -229,6 +238,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo {
229238
model_info!(
230239
slug,
231240
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
241+
supports_reasoning_summaries: true,
232242
support_verbosity: true,
233243
default_verbosity: Some(Verbosity::Low),
234244
base_instructions: GPT_5_2_INSTRUCTIONS.to_string(),
@@ -242,6 +252,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo {
242252
model_info!(
243253
slug,
244254
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
255+
supports_reasoning_summaries: true,
245256
support_verbosity: true,
246257
default_verbosity: Some(Verbosity::Low),
247258
base_instructions: GPT_5_1_INSTRUCTIONS.to_string(),
@@ -256,6 +267,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo {
256267
slug,
257268
base_instructions: BASE_INSTRUCTIONS_WITH_APPLY_PATCH.to_string(),
258269
shell_type: ConfigShellToolType::Default,
270+
supports_reasoning_summaries: true,
259271
support_verbosity: true,
260272
truncation_policy: TruncationPolicyConfig::bytes(10_000),
261273
context_window: CONTEXT_WINDOW_272K,

0 commit comments

Comments
 (0)