anse-app / anse

Supercharged experience for multiple models such as ChatGPT, DALL-E and Stable Diffusion.
https://anse.app
MIT License
1.86k stars 434 forks source link

feat: add generationConfig of Google Gemini & fix: Gemini abort bug #129

Closed LyuLumos closed 9 months ago

LyuLumos commented 9 months ago

Description

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.

netlify[bot] commented 9 months ago

Deploy Preview for chatgpt-demo-v2 failed.

Name Link
Latest commit aefed85526a2947e143351eeee7c11f958c10329
Latest deploy log https://app.netlify.com/sites/chatgpt-demo-v2/deploys/65b77fe65cc3250008b35bbc
ddiu8081 commented 9 months ago

Thanks!