Skip to content

Max tokens model limit for GPT-4 Turbo wrong #34

Description

@risacher

Fresh install from github; I was getting "Error sending message. Please try again." in the UI and in the console "OpenAI Chat API Error: Request failed with status code 400
Error in chat endpoint: Error: OpenAI API Error: max_tokens is too large: 8000. This model supports at most 4096 completion tokens, whereas you provided 8000."

Not a huge deal, but I suggest checking these limits that are liable to confuse new users.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions