File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ Precedence:
9393Default mapping from ` RunRequest ` :
9494- ` prompt ` -> streamed turn input
9595- ` cwd ` -> ` thread_opts.working_directory `
96- - ` model ` -> ` thread_opts.model `
96+ - ` model ` -> ` codex_opts.model ` and ` thread_opts.model `
9797- ` max_turns ` -> ` turn_opts.max_turns `
9898- ` timeout_ms ` -> ` turn_opts.timeout_ms `
9999- ` system_prompt ` -> ` thread_opts.developer_instructions `
Original file line number Diff line number Diff line change @@ -93,7 +93,9 @@ defmodule Jido.Codex.Options do
9393 thread_id: nil ,
9494 resume_last: false ,
9595 cancel_mode: :immediate ,
96- codex_opts: % { } ,
96+ codex_opts:
97+ % { }
98+ |> maybe_put ( :model , request . model ) ,
9799 thread_opts:
98100 % { }
99101 |> maybe_put ( :working_directory , request . cwd )
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ defmodule Jido.Codex.OptionsTest do
2121 assert options . prompt == "hello"
2222 assert options . transport == :exec
2323 assert options . cancel_mode == :immediate
24+ assert options . codex_opts . model == "gpt-5"
2425 assert options . thread_opts . working_directory == "/tmp/project"
2526 assert options . thread_opts . model == "gpt-5"
2627 assert options . thread_opts . developer_instructions == "be concise"
You can’t perform that action at this time.
0 commit comments