Larry Lv ec5d1abf34
fix(openai): support all o series models (#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.
2025-01-05 13:23:33 +08:00
..
2024-12-06 01:35:33 +08:00
2024-11-23 21:49:33 +08:00
2024-12-13 23:24:29 +08:00
2024-11-23 20:23:05 +08:00
2024-12-13 23:24:29 +08:00