Skip to content

Maximum context length is 4097 tokens #4

@foolsh

Description

@foolsh

I'm getting

InvalidRequestError: This model's maximum context length is 4097 tokens. However, you requested 4128 tokens (2128 in the messages, 2000 in the completion). Please reduce the length of the messages or completion.

A Google search points to there

https://stackoverflow.com/questions/75396481/openai-gpt-3-api-error-this-models-maximum-context-length-is-4097-tokens

I've poked around the code but didn't find anything screaming out at me.
Nice project you've got here, I hope to see more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions