File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,10 @@ pub struct NewConversationParams {
259259 #[ serde( skip_serializing_if = "Option::is_none" ) ]
260260 pub model : Option < String > ,
261261
262+ /// Override the model provider to use for this session.
263+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
264+ pub model_provider : Option < String > ,
265+
262266 /// Configuration profile from config.toml to specify default options.
263267 #[ serde( skip_serializing_if = "Option::is_none" ) ]
264268 pub profile : Option < String > ,
Original file line number Diff line number Diff line change @@ -1543,6 +1543,7 @@ async fn derive_config_from_params(
15431543) -> std:: io:: Result < Config > {
15441544 let NewConversationParams {
15451545 model,
1546+ model_provider,
15461547 profile,
15471548 cwd,
15481549 approval_policy,
@@ -1558,7 +1559,7 @@ async fn derive_config_from_params(
15581559 cwd : cwd. map ( PathBuf :: from) ,
15591560 approval_policy,
15601561 sandbox_mode,
1561- model_provider : None ,
1562+ model_provider,
15621563 codex_linux_sandbox_exe,
15631564 base_instructions,
15641565 include_apply_patch_tool,
You can’t perform that action at this time.
0 commit comments