Skip to content

Please add an option that lets us use "max_completion_tokens" instead of "max_tokens" #908

Closed

Description

@icywinters

Describe the bug
问题描述
A clear and concise description of what the bug is.

GPT-5/5.1 uses “max_completion_tokens” instead of “max_tokens”, so an error occurs when using the old parameter

To Reproduce
如何复现
Steps to reproduce the behavior:

  • Simply send any request using the GPT-5/5.1 model

Expected behavior
期望行为
A clear and concise description of what you expected to happen.

  • It should work the same way as the legacy models

Screenshots
截图说明
If applicable, add screenshots to help explain your problem.

Image

Please complete the following information):
请补全以下内容

  • OS: [e.g. Windows] Windows 11
  • Browser: [e.g. chrome, safari] Chrome
  • Extension Version: [e.g. v2.0.2] v2.5.9

Additional context
其他
Add any other context about the problem here.

Activity

  1. changed the title [-]Allow an option to use max_completion_tokens instead please[/-] [+]Please add an option that lets us use "max_completion_tokens" instead of "max_tokens"[/+] on Dec 3, 2025
  2. PeterDaveHello commented on Feb 28, 2026

    @PeterDaveHello
    Member

    See if this patch works for you: aabd810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions