mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
Merge branch 'main' into dev/cc/new-schema
This commit is contained in:
@@ -219,11 +219,10 @@ impl ToolsConfig {
|
||||
model_shell_type
|
||||
};
|
||||
|
||||
let apply_patch_tool_type = match model_info.apply_patch_tool_type {
|
||||
Some(ApplyPatchToolType::Freeform) => Some(ApplyPatchToolType::Freeform),
|
||||
Some(ApplyPatchToolType::Function) => Some(ApplyPatchToolType::Function),
|
||||
None => include_apply_patch_tool.then_some(ApplyPatchToolType::Function),
|
||||
};
|
||||
let apply_patch_tool_type = model_info
|
||||
.apply_patch_tool_type
|
||||
.clone()
|
||||
.or_else(|| include_apply_patch_tool.then_some(ApplyPatchToolType::Freeform));
|
||||
|
||||
let agent_jobs_worker_tools = include_agent_jobs
|
||||
&& matches!(
|
||||
|
||||
@@ -156,7 +156,7 @@ fn shell_zsh_fork_prefers_shell_command_over_unified_exec() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn fallback_apply_patch_models_use_function_tool_by_default() {
|
||||
fn fallback_apply_patch_models_use_freeform_tool_by_default() {
|
||||
let model_info = model_info();
|
||||
let features = Features::with_defaults();
|
||||
|
||||
@@ -174,7 +174,7 @@ fn fallback_apply_patch_models_use_function_tool_by_default() {
|
||||
|
||||
assert_eq!(
|
||||
tools_config.apply_patch_tool_type,
|
||||
Some(ApplyPatchToolType::Function)
|
||||
Some(ApplyPatchToolType::Freeform)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user