Skip to content

GPT-5 max tokens not supportsΒ #6979

@lx1054331851

Description

@lx1054331851

App Version

3.25.11

API Provider

LiteLLM

Model Used

gpt-5

Roo Code Task Links (Optional)

LiteLLM streaming error: 400 litellm.BadRequestError: AzureException BadRequestError - Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.. Received Model Group=gpt-5
Available Model Group Fallbacks=None

πŸ” Steps to Reproduce

LiteLLM streaming error: 400 litellm.BadRequestError: AzureException BadRequestError - Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.. Received Model Group=gpt-5
Available Model Group Fallbacks=None

πŸ’₯ Outcome Summary

expected use gpt-5 model nomally

πŸ“„ Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

Labels

Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions