Skip to content

Conversation

@knjiang
Copy link
Contributor

@knjiang knjiang commented Jan 14, 2026

Add Chat Completions API parameter test cases to the existing params.ts file for bidirectional mapping coverage.

New test coverage, got the request body from https://platform.openai.com/docs/api-reference/chat/create:

Category Responses API (existing) Chat Completions API (new)
Reasoning effort, summary + reasoning_effort
Text config json_object, json_schema ✓ response_format (both types)
Tools function, web_search, code_interpreter, specific choice, parallel_tool_calls ✓ function tools, tool_choice, parallel_tool_calls
Context instructions, truncation + system message (maps to instructions)
Storage store ✓ store
Caching service_tier, prompt_cache_key ✓ service_tier, prompt_cache_key
Metadata metadata, safety_identifier ✓ metadata, safety_identifier
Sampling - + temperature, top_p, frequency_penalty, presence_penalty, logprobs, top_logprobs
Output control - + n (multiple completions), stop, max_completion_tokens
Advanced - + prediction, seed, logit_bias

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

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 chat completion test cases for parmas add chat completion parameter test cases Jan 14, 2026
@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-responses_parameter_test_cases branch from f8ff480 to dc57d5e 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_openai-responses_parameter_test_cases branch from dc57d5e to 84c3c24 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