Skip to content

feat: Add max_tokens for chat completion requests #50

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

Merged
merged 1 commit into from
Mar 5, 2023
Merged

feat: Add max_tokens for chat completion requests #50

merged 1 commit into from
Mar 5, 2023

Conversation

zurawiki
Copy link
Contributor

@zurawiki zurawiki commented Mar 4, 2023

  • Add the max_tokens field to the CreateChatCompletionRequest struct.
  • Updated example to verify behavior

Test plan:
Run chat and chat-stream examples locally

Closes #49

- Add the `max_tokens` field to the `CreateChatCompletionRequest` struct.
@64bit
Copy link
Owner

64bit commented Mar 5, 2023

Thank you for PR @zurawiki , its seems like a day for multiple release.
I'll add the user field missing as well before releasing new version

@64bit 64bit merged commit a942648 into 64bit:main Mar 5, 2023
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.

max_tokens and user fields for CreateChatCompletionRequestArgs
2 participants