TestExec_OpenAI_V3Config tests that v3 configs work correctly with thinking disabled by default. This uses gpt-5 with a v3 config file to verify thinking is disabled for old config versions.
(t *testing.T)
| 16 | // TestExec_OpenAI_V3Config tests that v3 configs work correctly with thinking disabled by default. |
| 17 | // This uses gpt-5 with a v3 config file to verify thinking is disabled for old config versions. |
| 18 | func TestExec_OpenAI_V3Config(t *testing.T) { |
| 19 | t.Parallel() |
| 20 | out := runCLI(t, "run", "--exec", "testdata/basic_v3.yaml", "What's 2+2?") |
| 21 | |
| 22 | // v3 config with gpt-5 should work correctly (thinking disabled by default for old configs) |
| 23 | require.Equal(t, "4", out) |
| 24 | } |
| 25 | |
| 26 | // TestExec_OpenAI_WithThinkingBudget tests that when thinking_budget is explicitly configured |
| 27 | // in the YAML, thinking is enabled by default. |