Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openai o1 raise BadRequestError: Unsupported parameter: 'max_tokens' is not supported with this model #1709

Open
iorisa opened this issue Feb 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@iorisa
Copy link
Collaborator

iorisa commented Feb 21, 2025

Bug description

openai.BadRequestError: 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'}}

llm config:

llm:
  api_type: "openai"  # or azure / ollama / groq etc.
  model: "o1"  # or gpt-3.5-turbo
  base_url: "https://api.openai.com/v1"  # or forward url / other llm url
  api_key:
iorisa pushed a commit to iorisa/MetaGPT that referenced this issue Feb 21, 2025
iorisa pushed a commit to iorisa/MetaGPT that referenced this issue Feb 21, 2025
@iorisa iorisa added the bug Something isn't working label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant