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] google模型自定义接口出现问题 #3992

Closed
gaosn00 opened this issue Feb 4, 2024 · 11 comments
Closed

[Bug] google模型自定义接口出现问题 #3992

gaosn00 opened this issue Feb 4, 2024 · 11 comments
Labels
backlog bug Something isn't working

Comments

@gaosn00
Copy link

gaosn00 commented Feb 4, 2024

在新的这个支持google模型的自定义接口中,会导致错误,返回未输入openai的key(关键我现在是使用google的key)

4}YABT552))F1`){O~%4OGK
2%O~WKKWGU55HC6DUL57_8U
{
"error": {
"message": "Incorrect API key provided: AIzaSyB8***************************Tzhk. You can find your API key at https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
}
}

@nextchat-manager
Copy link

Please follow the issue template to update description of your issue.

@Issues-translate-bot
Copy link

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


Title: [Bug]

@gaosn00 gaosn00 changed the title [Bug] [Bug] google模型自定义接口出现问题 Feb 4, 2024
@fred-bf
Copy link
Contributor

fred-bf commented Feb 4, 2024

You could only set the api key for now, custom model name without Gemini could causing the client not recognize the mode type as Google Gemini Pro

@fred-bf fred-bf added bug Something isn't working backlog labels Feb 4, 2024
@H0llyW00dzZ
Copy link
Contributor

The formatting is incorrect. The custom model should be formatted like this:

image

@JDxiaojuju
Copy link

格式不正确。自定义模型的格式应如下所示:

图像

有没有如何使用Google api 的工作文档 我实在不记得怎么弄了

@Issues-translate-bot
Copy link

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


The format is incorrect. The format of your custom model should look like this:

![image](https://private-user-images.githubusercontent.com/17626300/302160780-0ad2299c-d232-49fb-b74e-d461f2165256.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOi JnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDcyMDM5ODgsIm5iZiI6MTcwNzIwMzY4OCwicGF0aCI6Ii8xNzYyNjMwMC8zMDI xNjA3ODAtMGFkMjI5OWMtZDIzMi00OWZiLWI3NGUtZDQ2MWYyMTY1MjU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJT JGMjAyNDAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjA2VDA3MTQ0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ1ZjdiZmJhMTE0 YTcyYjNhZWY1NDQwNTU0NzA2MTk5Y2FiZmI2YmRmYWViMGRjOGJjNGU1YmRmOWZjM2MzZWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.q NIff_tbe9Sm0GeDN1vOWC_dj9JNSquA81RbERu59Bo)

Is there any working document on how to use Google api? I really can’t remember how to do it.

@fred-bf
Copy link
Contributor

fred-bf commented Feb 6, 2024

@JDxiaojuju you can only setting up the "GOOGLE_API_KEY" env, then switch to Google Gemini Model should works fine

https://docs.nextchat.dev/quickstart/selfhost/env#using-google-gemini-pro-as-model-provider

@JDxiaojuju
Copy link

您只能设置“GOOGLE_API_KEY”环境,然后切换到 Google Gemini 模型应该可以正常工作

https://docs.nextchat.dev/quickstart/selfhost/env#using-google-gemini-pro-as-model-provider
我尝试过 依然无法正常进行交互

@Issues-translate-bot
Copy link

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


You can only set the "GOOGLE_API_KEY" environment, then switching to the Google Gemini model should work fine

https://docs.nextchat.dev/quickstart/selfhost/env#using-google-gemini-pro-as-model-provider
I tried but still can't interact normally

@Agilan989
Copy link

Agilan989 commented Feb 6, 2024 via email

@fred-bf
Copy link
Contributor

fred-bf commented Feb 7, 2024

@gaosn00 you can have a try now with the latest version

@fred-bf fred-bf closed this as completed Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants