summaryrefslogtreecommitdiff
path: root/internal/hexaicli/run_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/hexaicli/run_test.go')
-rw-r--r--internal/hexaicli/run_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/hexaicli/run_test.go b/internal/hexaicli/run_test.go
index 4dcbbc5..0250ac9 100644
--- a/internal/hexaicli/run_test.go
+++ b/internal/hexaicli/run_test.go
@@ -152,7 +152,11 @@ func TestPrintProviderInfo(t *testing.T) {
}
func TestBuildCLIRequestArgs_Override(t *testing.T) {
- cfg := appconfig.App{CLIModel: "override", CLITemperature: floatPtr(0.7), Provider: "openai", CLIProvider: "copilot", CopilotModel: "gpt-4o"}
+ cfg := appconfig.App{
+ Provider: "openai",
+ CopilotModel: "gpt-4o",
+ CLIConfigs: []appconfig.SurfaceConfig{{Provider: "copilot", Model: "override", Temperature: floatPtr(0.7)}},
+ }
req := buildCLIRequestArgs(cfg, &fakeClient{name: "copilot", model: "default"})
if req.model != "override" {
t.Fatalf("expected model override, got %q", req.model)