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

[Feature] support Gemini Pro API #3609

Merged
merged 14 commits into from
Dec 24, 2023
Merged

[Feature] support Gemini Pro API #3609

merged 14 commits into from
Dec 24, 2023

Conversation

fredliang44
Copy link
Collaborator

@fredliang44 fredliang44 commented Dec 23, 2023

Relate Issue: #3543

@fredliang44 fredliang44 changed the title [WIP] support Gemini Pro API [Feature] support Gemini Pro API Dec 24, 2023
@ChatGPTNextWeb ChatGPTNextWeb merged commit bda3098 into ChatGPTNextWeb:main Dec 24, 2023
H0llyW00dzZ pushed a commit to H0llyW00dzZ/ChatGPT-Next-Web that referenced this pull request Dec 24, 2023
H0llyW00dzZ added a commit to H0llyW00dzZ/ChatGPT-Next-Web that referenced this pull request Dec 24, 2023
* Merge pull request ChatGPTNextWeb#3609 from fredliang44/main

[Feature] support Gemini Pro API

* Feat UI/UX Page Constant

- [+] feat(constant.ts): add provider information for default models

* A Better TypeScript Syntax

- [+] refactor(chat.ts): rename customsystemprompt variable to customSystemPrompt for consistency
- [+] feat(chat.ts): add support for injecting system prompts based on model configuration
- [+] refactor(chat.ts): remove extra line breaks in customSystemPrompt template
- [+] refactor(chat.ts): update system prompts logging based on model conditions

---------

Co-authored-by: ChatGPTNextWeb <[email protected]>
@zhinuotech zhinuotech mentioned this pull request Dec 24, 2023
@ShinChven
Copy link

#3693

感谢您编写的 Google Gemini Pro 兼容。

请问能不能稍微改一下,在选择 OpenAI 为模型服务商的时候不要强制调用 Google Vertex AI 的 API 协议。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#3693

Thanks for writing Google Gemini Pro compatible.

Could you please make a slight change? When choosing OpenAI as the model service provider, do not force the API protocol of Google Vertex AI to be called.

spongeBor pushed a commit to spongeBor/ChatGPT-Next-Web that referenced this pull request Jan 18, 2024
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this pull request May 16, 2024
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

4 participants