Skip to content

Conversation

@rallyemax
Copy link

Use value of max-tokens before setting it to nil, rather than the other way around.

Replace max-completion-tokens' with max_completion_tokens` in parameters to openai API.

Expand use of `max_completion_tokens' parameter to all o-series models, rather than merely o1 and o3.


These are the minimal changes to fix the openai module. More broadly, it looks like max_tokens has been deprecated in favor of max_completion_tokens according to the API docs. Maybe the whole section needs a bit of a rewrite if this is in fact the case?

Use value of max-tokens before setting it to nil, rather than the other way around.

Replace `max-completion-tokens' with `max_completion_tokens` in parameters to openai API.

Expand use of `max_completion_tokens' parameter to all o-series models, rather than merely o1 and o3.
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.

1 participant