Skip to content

Commit fc2ad16

Browse files
committed
Update anthropic-beta header to use latest code execution tool and add
claude-haiku model defaults.
1 parent eb45d6e commit fc2ad16

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

crates/pattern_core/src/model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl ResponseOptions {
130130
// ));
131131
headers.push((
132132
"anthropic-beta".to_string(),
133-
"code-execution-2025-05-22".to_string(),
133+
"code-execution-2025-08-25".to_string(),
134134
));
135135
}
136136

crates/pattern_core/src/model/defaults.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,28 @@ fn init_defaults() -> HashMap<&'static str, ModelDefaults> {
211211
},
212212
);
213213

214+
defaults.insert(
215+
"claude-haiku-4-5-20251001",
216+
ModelDefaults {
217+
context_window: 200_000,
218+
max_output_tokens: Some(64_000),
219+
capabilities: vec![
220+
ModelCapability::TextGeneration,
221+
ModelCapability::FunctionCalling,
222+
ModelCapability::CodeExecution,
223+
ModelCapability::SystemPrompt,
224+
ModelCapability::VisionInput,
225+
ModelCapability::ComputerUse,
226+
ModelCapability::TextEdit,
227+
ModelCapability::WebSearch,
228+
ModelCapability::LongContext,
229+
ModelCapability::ExtendedThinking,
230+
],
231+
cost_per_1k_prompt: Some(0.001),
232+
cost_per_1k_completion: Some(0.005),
233+
},
234+
);
235+
214236
defaults.insert(
215237
"claude-3-5-haiku-20241022",
216238
ModelDefaults {

0 commit comments

Comments
 (0)