Skip to content

fix(openai): fix max_tokens error#23

Merged
assagman merged 1 commit intomainfrom
fix/openai-max-tokens
Dec 16, 2025
Merged

fix(openai): fix max_tokens error#23
assagman merged 1 commit intomainfrom
fix/openai-max-tokens

Conversation

@assagman
Copy link
Owner

detect reasoning models via model catalog for token param.

Use modelcatalog capabilities to decide when to send max_completion_tokens (instead of regex matching), and expand OpenAI provider tests to cover more reasoning/non-reasoning models and case handling.

detect reasoning models via model catalog for token param.

Use `modelcatalog` capabilities to decide when to send
`max_completion_tokens` (instead of regex matching), and expand
OpenAI provider tests to cover more reasoning/non-reasoning
models and case handling.

Signed-off-by: assagman <ahmetsercansagman@gmail.com>
@assagman assagman self-assigned this Dec 16, 2025
@assagman assagman added bug Something isn't working enhancement New feature or request labels Dec 16, 2025
@assagman assagman merged commit 8cddae8 into main Dec 16, 2025
4 checks passed
@assagman assagman deleted the fix/openai-max-tokens branch December 16, 2025 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant