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

feat: set the length of the historical message #75

Merged
merged 2 commits into from
Jun 28, 2023

Conversation

chancelyg
Copy link
Contributor

Description

Added a button for setting the length of historical messages, and correctly calculates the length of the current user's historical messages upon submission to avoid triggering the MaxTokens error.

This enhancement greatly improves usability.

Linked Issues

Additional context

@netlify
Copy link

netlify bot commented Jun 26, 2023

Deploy Preview for chatgpt-demo-v2 ready!

Name Link
🔨 Latest commit 787e492
🔍 Latest deploy log https://app.netlify.com/sites/chatgpt-demo-v2/deploys/649b966675f0be00086e0696
😎 Deploy Preview https://deploy-preview-75--chatgpt-demo-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@yzh990918 yzh990918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If write this, maxTokens will be negative.

@chancelyg
Copy link
Contributor Author

Apologies, I have revised the computation rules for MaxTokens, ensuring that it will no longer yield negative values.

@yzh990918
Copy link
Member

Thanks!

@yzh990918 yzh990918 merged commit 3c2b344 into anse-app:main Jun 28, 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.

2 participants