Skip to content

feat(anthropic): update model YAMLs [bot]#1050

Merged
harshiv-26 merged 1 commit into
mainfrom
bot/update-anthropic-20260515-063027
May 15, 2026
Merged

feat(anthropic): update model YAMLs [bot]#1050
harshiv-26 merged 1 commit into
mainfrom
bot/update-anthropic-20260515-063027

Conversation

@models-bot
Copy link
Copy Markdown
Contributor

@models-bot models-bot Bot commented May 15, 2026

Auto-generated by poc-agent for provider anthropic.


Note

Medium Risk
Config-only changes, but they update pricing fields and model deprecation metadata, which could affect cost estimation and model selection behavior if consumers rely on these YAMLs.

Overview
Updates Anthropic model YAMLs to reflect new metadata: adds cache_creation_input_token_cost_per_hour across several Claude Haiku/Sonnet/Opus variants and introduces/updates deprecationDate on multiple models.

Also refreshes declared capabilities by adding items like parallel_function_calling and system_messages to some models, and tweaks documentation references (adds a sources link for claude-sonnet-4-5-20250929 while removing the sources block from claude-opus-4-7).

Reviewed by Cursor Bugbot for commit 14a4f61. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

/test-models

@harshiv-26
Copy link
Copy Markdown
Collaborator

Gateway test results

  • Total: 192
  • Passed: 190
  • Failed: 0
  • Validation failed: 2
  • Errored: 0
  • Skipped: 0
  • Success rate: 98.96%
Provider Model Scenarios
anthropic claude-haiku-4-5 success: parallel-tool-call:stream:anthropic, parallel-tool-call:stream, tool-call:stream, parallel-tool-call, tool-call:stream:anthropic, structured-output, params:anthropic, structured-output:anthropic, params, params:stream, reasoning:stream, params:stream:anthropic, tool-call, tool-call:anthropic, reasoning:anthropic, parallel-tool-call:anthropic, structured-output:stream:anthropic, reasoning, reasoning:stream:anthropic, structured-output:stream
anthropic claude-haiku-4-5-20251001 success: tool-call:anthropic, structured-output:stream:anthropic, parallel-tool-call:stream, tool-call:stream, structured-output:stream, parallel-tool-call:stream:anthropic, parallel-tool-call, params, reasoning, reasoning:anthropic, parallel-tool-call:anthropic, tool-call, params:anthropic, structured-output:anthropic, tool-call:stream:anthropic, params:stream, params:stream:anthropic, reasoning:stream:anthropic, reasoning:stream, structured-output
anthropic claude-opus-4-1 success: tool-call, tool-call:stream:anthropic, params:anthropic, params, params:stream:anthropic, tool-call:stream, tool-call:anthropic, params:stream, reasoning, reasoning:stream:anthropic, reasoning:stream, reasoning:anthropic
anthropic claude-opus-4-1-20250805 success: tool-call:stream, tool-call, parallel-tool-call, params:anthropic, parallel-tool-call:stream, params:stream:anthropic, params:stream, params, parallel-tool-call:anthropic, tool-call:anthropic, tool-call:stream:anthropic, parallel-tool-call:stream:anthropic, reasoning:stream, reasoning, reasoning:stream:anthropic, reasoning:anthropic
anthropic claude-opus-4-5 success: structured-output, tool-call, structured-output:anthropic, tool-call:stream, params:stream, structured-output:stream, tool-call:stream:anthropic, tool-call:anthropic, params:anthropic, params, structured-output:stream:anthropic, params:stream:anthropic, reasoning:stream, reasoning, reasoning:stream:anthropic, reasoning:anthropic
anthropic claude-opus-4-5-20251101 success: structured-output:stream, structured-output, params:anthropic, tool-call:stream, params:stream:anthropic, tool-call, structured-output:anthropic, params:stream, structured-output:stream:anthropic, tool-call:stream:anthropic, params, tool-call:anthropic, reasoning, reasoning:stream, reasoning:stream:anthropic, reasoning:anthropic
anthropic claude-opus-4-6 success: tool-call:stream, structured-output, structured-output:anthropic, tool-call:stream:anthropic, tool-call:anthropic, params:anthropic, structured-output:stream:anthropic, tool-call, params:stream:anthropic, params, params:stream, structured-output:stream, reasoning:anthropic, reasoning:stream:anthropic, reasoning:stream, reasoning
anthropic claude-opus-4-7 success: structured-output:stream, parallel-tool-call:stream:anthropic, tool-call:anthropic, params:anthropic, params:stream, tool-call:stream, tool-call, params, structured-output:stream:anthropic, params:stream:anthropic, structured-output:anthropic, parallel-tool-call:stream, tool-call:stream:anthropic, parallel-tool-call, structured-output, parallel-tool-call:anthropic, reasoning:anthropic, reasoning:stream:anthropic

validation_failure: reasoning, reasoning:stream
anthropic claude-sonnet-4-5 success: tool-call:stream, tool-call:stream:anthropic, params:stream:anthropic, tool-call:anthropic, parallel-tool-call:stream, params:anthropic, tool-call, params:stream, structured-output, parallel-tool-call:anthropic, parallel-tool-call:stream:anthropic, structured-output:anthropic, structured-output:stream, params, parallel-tool-call, structured-output:stream:anthropic, reasoning:stream, reasoning, reasoning:anthropic, reasoning:stream:anthropic
anthropic claude-sonnet-4-5-20250929 success: tool-call:stream, params:stream, params:anthropic, structured-output:stream:anthropic, params, tool-call:stream:anthropic, tool-call, structured-output:stream, structured-output, params:stream:anthropic, structured-output:anthropic, tool-call:anthropic, reasoning, reasoning:stream, reasoning:anthropic, reasoning:stream:anthropic
anthropic claude-sonnet-4-6 success: tool-call:stream:anthropic, tool-call, tool-call:stream, tool-call:anthropic, structured-output, parallel-tool-call:anthropic, parallel-tool-call:stream:anthropic, structured-output:anthropic, parallel-tool-call, structured-output:stream:anthropic, structured-output:stream, params:stream:anthropic, parallel-tool-call:stream, params:stream, params, params:anthropic, reasoning:stream, reasoning, reasoning:stream:anthropic, reasoning:anthropic
Failures (2)

anthropic/claude-opus-4-7 — reasoning (validation_failure)

Error:

Traceback (most recent call last):
  File "/tmp/tmp33fvnmlj/snippet.py", line 43, in <module>
    raise Exception("VALIDATION FAILED: reasoning - no reasoning information in response")
Exception: VALIDATION FAILED: reasoning - no reasoning information in response
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.chat.completions.create(
    model="test-v2-anthropic/claude-opus-4-7",
    messages=[
        {"role": "system", "content": "You are a helpful assistant. You MUST think step by step and show your reasoning. Never skip reasoning steps."},
        {"role": "user", "content": "Hi"},
        {"role": "assistant", "content": "Hi, how can I help you"},
        {"role": "user", "content": "How to calculate 3^3^3^3? Think step by step and show all reasoning."},
    ],
    reasoning_effort="medium",
    stream=False,
)

_usage = getattr(response, "usage", None)
_reasoning_detected = False

_choices = getattr(response, "choices", None)
if _choices and len(_choices) > 0:
    _message = getattr(_choices[0], "message", None)
else:
    _message = None

if _message and getattr(_message, "content", None) is not None:
    print(_message.content)

if _usage is not None:
    _output_token_details = getattr(_usage, "completion_tokens_details", None)
    if _output_token_details and getattr(_output_token_details, "reasoning_tokens", 0) > 0:
        _reasoning_detected = True
    elif getattr(_usage, "reasoning", None) is not None:
        _reasoning_detected = True

if getattr(_message, "reasoning_content", None) is not None:
    _reasoning_detected = True
elif getattr(_message, "reasoning", None) is not None:
    _reasoning_detected = True

if not _reasoning_detected:
    print("Response: ", response)
    raise Exception("VALIDATION FAILED: reasoning - no reasoning information in response")
print("VALIDATION: reasoning SUCCESS")

anthropic/claude-opus-4-7 — reasoning:stream (validation_failure)

Error:

Traceback (most recent call last):
  File "/tmp/tmpyiza2tls/snippet.py", line 35, in <module>
    raise Exception("VALIDATION FAILED: reasoning stream - no reasoning information in stream")
Exception: VALIDATION FAILED: reasoning stream - no reasoning information in stream
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.chat.completions.create(
    model="test-v2-anthropic/claude-opus-4-7",
    messages=[
        {"role": "system", "content": "You are a helpful assistant. You MUST think step by step and show your reasoning. Never skip reasoning steps."},
        {"role": "user", "content": "Hi"},
        {"role": "assistant", "content": "Hi, how can I help you"},
        {"role": "user", "content": "How to calculate 3^3^3^3? Think step by step and show all reasoning."},
    ],
    reasoning_effort="medium",
    stream=True,
)

_reasoning_detected = False
for chunk in response:
    if chunk.choices and len(chunk.choices) > 0:
        delta = chunk.choices[0].delta
        if delta.content is not None:
            print(delta.content, end="", flush=True)
        if getattr(delta, "reasoning_content", None) is not None:
            _reasoning_detected = True
        if getattr(delta, "reasoning", None) is not None:
            _reasoning_detected = True

    _usage = getattr(chunk, "usage", None)
    if _usage is not None:
        _details = getattr(_usage, "completion_tokens_details", None)
        if _details and getattr(_details, "reasoning_tokens", 0) > 0:
            _reasoning_detected = True

if not _reasoning_detected:
    raise Exception("VALIDATION FAILED: reasoning stream - no reasoning information in stream")
print("\nVALIDATION: reasoning stream SUCCESS")

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 14a4f61. Configure here.

Comment thread providers/anthropic/claude-sonnet-4-5-20250929.yaml
@harshiv-26 harshiv-26 merged commit e31ec9f into main May 15, 2026
6 checks passed
@harshiv-26 harshiv-26 deleted the bot/update-anthropic-20260515-063027 branch May 15, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant