test: update Anthropic test to check anthropic_version instead of model
CI / test (pull_request) Successful in 16s
CI / review (anthropic--claude-4.6-sonnet, sonnet, SONNET_REVIEW_TOKEN) (pull_request) Failing after 16s
CI / review (gpt-5, security, SECURITY_REVIEW.md, SECURITY_REVIEW_TOKEN) (pull_request) Successful in 1m33s
CI / review (gpt-5, gpt, GPT_REVIEW_TOKEN) (pull_request) Successful in 1m50s

This commit is contained in:
Rodin
2026-05-09 23:36:42 -07:00
parent d13e062866
commit b12df1a636
+2 -2
View File
@@ -206,8 +206,8 @@ func TestAICoreClient_CompleteAnthropic(t *testing.T) {
if err := json.NewDecoder(r.Body).Decode(&req); err != nil { if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
t.Fatalf("decode request: %v", err) t.Fatalf("decode request: %v", err)
} }
if req.Model != "anthropic--claude-4.6-sonnet" { if req.AnthropicVersion != "2023-06-01" {
t.Errorf("expected model name in request") t.Errorf("expected anthropic_version in request")
} }
if req.System != "You are helpful" { if req.System != "You are helpful" {
t.Errorf("expected system prompt: %q", req.System) t.Errorf("expected system prompt: %q", req.System)