Skip to content

Support OpenAI reasoning models via OpenAI API #792

Open

Description

@PeterDaveHello

Is your feature request related to a problem? Please describe.

chatGPTBox currently can't use OpenAI's o1 series reasoning models due to some API spec differences. One key issue is that the max_tokens parameter has been deprecated and replaced by max_completion_tokens, which leads to incompatibility with the new models.

Describe the solution you'd like

To support the o1 series models, the following changes and considerations should be made based on the OpenAI API and beta limitations:

  • Replace max_tokens with max_completion_tokens.
  • Limitations during beta:
    • Only user and assistant message types are allowed (no system messages).
    • Streaming, tools, and function calling are not supported.
    • Parameters such as temperature, top_p, and n are fixed at 1.
    • presence_penalty and frequency_penalty are fixed at 0.

Activity

  1. Mohamed3nan commented on Oct 1, 2024

    @Mohamed3nan
    Contributor

    It's working if you just add the name of the model :D
    image

  2. changed the title [-]Support OpenAI o1 series models[/-] [+]Support OpenAI o1 series models via OpenAI API[/+] on Oct 1, 2024
  3. PeterDaveHello commented on Oct 1, 2024

    @PeterDaveHello
    MemberAuthor

    Hey @Mohamed3nan,

    Thanks for pointing that out! I should probably update the title to be more precise. This issue is specifically about accessing the o1 series models via the API. When using the web, these issues don't occur because the access method is different.

  4. changed the title [-]Support OpenAI o1 series models via OpenAI API[/-] [+]Support OpenAI reasoning models via OpenAI API[/+] on Aug 23, 2025
  5. PeterDaveHello commented on Aug 23, 2025

    @PeterDaveHello
    MemberAuthor

    At least o3, o3-mini, o4-mini, gpt-5, gpt-5-mini, and gpt-5-nano should also be supported and tested.

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions