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

Allow no token limit for ChatGPT API #1481

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

kahkeng
Copy link
Contributor

@kahkeng kahkeng commented Mar 6, 2023

The endpoint default is inf if we don't specify max_tokens, so unlike regular completion API, we don't need to calculate this based on the prompt.

The endpoint default is inf if we don't specify max_tokens, so unlike regular completion API, we don't need to calculate this based on the prompt.
@hwchase17 hwchase17 merged commit df6865c into langchain-ai:master Mar 6, 2023
@hwchase17
Copy link
Contributor

thanks!

@kahkeng kahkeng deleted the kahkeng/chatgpt_max_tokens branch March 6, 2023 21:34
zachschillaci27 pushed a commit to zachschillaci27/langchain that referenced this pull request Mar 8, 2023
The endpoint default is inf if we don't specify max_tokens, so unlike
regular completion API, we don't need to calculate this based on the
prompt.
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

Successfully merging this pull request may close these issues.

2 participants