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

[Bug] 同时填入openai和gemini的key和代理地址,貌似默认使用openai的key,此时如何切换或使用gemini的key #5492

Closed
DreamofInfinity1 opened this issue Sep 22, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@DreamofInfinity1
Copy link

📦 部署方式

Other

📌 软件版本

v2.15.2

💻 系统环境

Windows

📌 系统版本

win11

🌐 浏览器

Edge

📌 浏览器版本

edge

🐛 问题描述

部署在cloudflare,同时填入openai和gemini的key和代理地址,貌似默认使用openai的key,此时如何切换或使用gemini的key

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@DreamofInfinity1 DreamofInfinity1 added the bug Something isn't working label Sep 22, 2024
@Issues-translate-bot
Copy link

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


Title: [Bug] Fill in the keys and proxy addresses of openai and gemini at the same time. It seems that the openai key is used by default. How to switch or use the gemini key at this time?

@H0llyW00dzZ
Copy link
Contributor

📦 部署方式

Other

📌 软件版本

v2.15.2

💻 系统环境

Windows

📌 系统版本

win11

🌐 浏览器

Edge

📌 浏览器版本

edge

🐛 问题描述

部署在cloudflare,同时填入openai和gemini的key和代理地址,貌似默认使用openai的key,此时如何切换或使用gemini的key

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

You have to go to the settings, I think. For example, like this:

image

Then, go back to the chat because the old desktop version, which is built into binaries (client-side only), still works for me using this method.

@DreamofInfinity1
Copy link
Author

@H0llyW00dzZ 我是将openai和gemini的key和代理地址以环境变量嵌入程序,我想在此种情景下进行切换

@Issues-translate-bot
Copy link

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


@H0llyW00dzZ I embed the keys and proxy addresses of openai and gemini into the program as environment variables. I want to switch in this situation.

@lloydzhou
Copy link
Contributor

image

@Issues-translate-bot
Copy link

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


image

@DreamofInfinity1
Copy link
Author

@lloydzhou 您这样貌似仅仅用来区别不同厂商相同模型名的情况。我的意思指有两个api,一个是别人的new-api,里面虽然包含gemini的各种模型,但实际无法使用。第二个api是自己Geminipro的api,可以使用。我想问的是两个api中模型列表重叠,一个不可用,如何调用Google api来使用gemini

@Issues-translate-bot
Copy link

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


@lloydzhou You seem to be just using it to distinguish between different manufacturers with the same model name. What I mean is that there are two APIs. One is someone else's new-API. Although it contains various models of gemini, it cannot actually be used. The second api is your own Geminipro api and can be used. What I want to ask is that the model lists in the two APIs overlap and one is unavailable. How to call the Google API to use gemini?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants