feat: Update Claude model names and IDs across configuration, documentation, and tests, including the default model and thinking delta logic.

This commit is contained in:
CJACK
2026-02-17 13:36:19 +08:00
parent 6697d0d227
commit 7dcddef91f
10 changed files with 42 additions and 38 deletions

View File

@@ -275,7 +275,7 @@ func (r *Runner) caseSSEJSONIntegrity(ctx context.Context, cc *caseContext) erro
"anthropic-version": "2023-06-01",
},
Body: map[string]any{
"model": "claude-sonnet-4-20250514",
"model": "claude-sonnet-4-5",
"messages": []map[string]any{
{"role": "user", "content": "stream json integrity"},
},

View File

@@ -1056,7 +1056,7 @@ func (r *Runner) caseAnthropicNonstream(ctx context.Context, cc *caseContext) er
"content-type": "application/json",
},
Body: map[string]any{
"model": "claude-sonnet-4-20250514",
"model": "claude-sonnet-4-5",
"messages": []map[string]any{
{"role": "user", "content": "hello"},
},
@@ -1084,7 +1084,7 @@ func (r *Runner) caseAnthropicStream(ctx context.Context, cc *caseContext) error
"content-type": "application/json",
},
Body: map[string]any{
"model": "claude-sonnet-4-20250514",
"model": "claude-sonnet-4-5",
"messages": []map[string]any{
{"role": "user", "content": "stream hello"},
},
@@ -1113,7 +1113,7 @@ func (r *Runner) caseAnthropicCountTokens(ctx context.Context, cc *caseContext)
"content-type": "application/json",
},
Body: map[string]any{
"model": "claude-sonnet-4-20250514",
"model": "claude-sonnet-4-5",
"messages": []map[string]any{
{"role": "user", "content": "count me"},
},