Skip to content

Conversation

@knjiang
Copy link
Contributor

@knjiang knjiang commented Jan 14, 2026

Add Anthropic Messages API parameter test cases to the existing params.ts file for cross-provider mapping coverage.

New test coverage, got the request body from https://docs.anthropic.com/en/api/messages:

Category OpenAI (existing) Anthropic (new)
Reasoning effort, summary + thinking (enabled/disabled, budget_tokens)
Tools function, web_search, code_interpreter, tool_choice ✓ web_search_20250305, bash_20250124, + text_editor (v1/v2/v3), tool_choice (auto/any/none/tool)
Tool config parallel_tool_calls ✓ disable_parallel_tool_use
Context instructions, system message ✓ system
Caching service_tier, prompt_cache_key ✓ service_tier, + cache_control (ephemeral, ttl: 5m/1h)
Metadata metadata, safety_identifier ✓ metadata, metadata.user_id
Sampling temperature, top_p, frequency_penalty, presence_penalty ✓ temperature, top_p, + top_k
Output control stop, max_completion_tokens ✓ stop_sequences, max_tokens
Streaming - + stream
Content types - + image (base64), document (text)
Web search config - + allowed_domains, max_uses, user_location

cross compatability coverage report -> https://github.com/braintrustdata/lingua/actions/runs/21009331032

Copy link
Contributor Author

knjiang commented Jan 14, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@knjiang knjiang changed the title add antrhopic test cases add anthropic test cases Jan 14, 2026
@knjiang knjiang changed the title add anthropic test cases add anthropic test cases for parameters Jan 14, 2026
@knjiang knjiang changed the title add anthropic test cases for parameters add anthropic parameter test cases Jan 14, 2026
@knjiang knjiang changed the title add anthropic parameter test cases add anthropic messages parameter test cases Jan 14, 2026
@knjiang knjiang force-pushed the add_anthropic_parameter_test_cases branch from f2b0052 to cb06ba4 Compare January 14, 2026 20:00
@knjiang knjiang force-pushed the add_openai-chat_completion_test_cases_for_params branch from 1dca4d1 to ffa0b10 Compare January 14, 2026 20:00
@knjiang knjiang force-pushed the add_openai-chat_completion_test_cases_for_params branch from ffa0b10 to 38aa7e6 Compare January 14, 2026 20:48
@knjiang knjiang force-pushed the add_anthropic_parameter_test_cases branch from cb06ba4 to 0613cbb Compare January 14, 2026 20:48
@knjiang knjiang marked this pull request as ready for review January 14, 2026 21:01
@knjiang knjiang requested review from ankrgyl and remh January 14, 2026 21:02
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.

2 participants