You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API error: Error code: 400 - {'error': {'message': "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.", 'type': 'invalid_request_error', 'param': 'max_tokens', 'code': 'unsupported_parameter'}}
#555
Closed
goedzo opened this issue
Mar 12, 2025
· 3 comments
Using model "o3-mini" from openAI. This gives the following error:
API error: Error code: 400 - {'error': {'message': "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.", 'type': 'invalid_request_error', 'param': 'max_tokens', 'code': 'unsupported_parameter'}}
Please use max_completion_tokens in the API request.
The text was updated successfully, but these errors were encountered:
Btw, I've already implemented a fix on my own machine, so will also make a PR that fixes this when o3-mini is used. This is also required since the o3-mini model doesn't have a "temperature" parameter.
Using model "o3-mini" from openAI. This gives the following error:
API error: Error code: 400 - {'error': {'message': "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.", 'type': 'invalid_request_error', 'param': 'max_tokens', 'code': 'unsupported_parameter'}}
Please use max_completion_tokens in the API request.
The text was updated successfully, but these errors were encountered: