Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for retrieving the maximum number of generatable tokens per request. #262

Open
Valkryst opened this issue Feb 28, 2025 · 0 comments

Comments

@Valkryst
Copy link

As far as I have seen, and please correct me if I'm wrong, the SDK doesn't have a way to programmatically retrieve the maximum number of tokens that can be generated in a single request.

I'd like to see these values added to the ChatModel enum, or another appropriate area.

Here're a few examples, just in-case I'm using the wrong terminology:

  • gpt-3.5-turbo -> Max of 4096
  • gpt-4 -> Max of 8192
  • gpt-4-32k -> Max of 32,768

These values were pulled from an old project of mine, which in-turn pulled them from an old copy of the OpenAI docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant