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: add generationConfig of Google Gemini & fix: Gemini abort bug #129

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

LyuLumos
Copy link
Contributor

Description

  • feat: add support for Google Gemini configuration: temperature maxOutputTokens topP topK
  • fix: the abort button does not work when using Gemini.

Linked Issues

None.

Additional context

There are two similar parameters in the Gemini settings, the first is maxTokens. This parameter serves the same purpose as before, is used to cut the history length.

The second one is maxOutputTokens, which is an offical parameter for Gemini. In the Google docs, Input token limit is a fixed value, (e.g. 30720 for gemini-pro). The user can only change maxOutputTokens.

Copy link

netlify bot commented Jan 29, 2024

Deploy Preview for chatgpt-demo-v2 failed.

Name Link
🔨 Latest commit aefed85
🔍 Latest deploy log https://app.netlify.com/sites/chatgpt-demo-v2/deploys/65b77fe65cc3250008b35bbc

@ddiu8081 ddiu8081 merged commit 1778106 into anse-app:main Jan 29, 2024
1 of 5 checks passed
@ddiu8081
Copy link
Member

Thanks!

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.

None yet

2 participants