Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(openai): support all
o
series models (yetone#1031)
Before this change, since `max_completion_tokens` was not set for `o` series models, the completion request will time out sometimes. This makes sure it converts the `max_tokens` parameter to `max_completion_tokens` for `o` series models. I tested this change with `gpt-4o-mini`, `o1-mini` and `o3-mini`, and they all still work as expected.
- Loading branch information