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] 当使用code登录的时候,用不了gemini-pro #3616

Closed
1 of 3 tasks
DBvc opened this issue Dec 24, 2023 · 5 comments
Closed
1 of 3 tasks

[Bug] 当使用code登录的时候,用不了gemini-pro #3616

DBvc opened this issue Dec 24, 2023 · 5 comments

Comments

@DBvc
Copy link

DBvc commented Dec 24, 2023

Describe the bug

使用code登录的时候,再选择gemini-pro模型,访问google的接口会带上code,而不是google api key

问题可能在这一行代码上

image

https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/bda3098a31284fa93bb36f639d304ee693c7add1/app/api/google/%5B...path%5D/route.ts#L43C13-L43C13

To Reproduce

  • 用vercel部署
  • 设置登录的code,设置google api key
  • 访问页面,使用code登录
  • 选择gemini-pro模型
  • 发送消息,会报错,因为apikey用错了

Expected behavior
使用code登录的时候,可以正常使用gemini-pro模型

Screenshots
If applicable, add screenshots to help explain your problem.

Deployment

  • Docker
  • Vercel
  • Server

Desktop (please complete the following information):

  • OS: [Windows 11]
  • Browser [Chrome]
  • Version [120.0.6099.129]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional Logs
Add any logs about the problem here.

@Issues-translate-bot
Copy link

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


Title: [Bug] When using code to log in, gemini-pro cannot be used

@fredliang44
Copy link
Collaborator

@DBvc hi, this issue should have been resolved, you can check it again

@shenpvip
Copy link

@DBvc hi, this issue should have been resolved, you can check it again

Do you need to use a VPN for accessing the Gemini-Pro model?

@bios99
Copy link

bios99 commented Jan 2, 2024

遇到同样的问题,而且我已经升级到最新

@Issues-translate-bot
Copy link

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


Having the same problem and I've upgraded to the latest

JMcn pushed a commit to JMcn/ChatGPT-Next-Web that referenced this issue Jan 3, 2024
jz1248 pushed a commit to jz1248/ChatGPT-Next-Web that referenced this issue Jan 7, 2024
abrahamgreyson pushed a commit to abrahamgreyson/gpt-web that referenced this issue Jan 12, 2024
spongeBor pushed a commit to spongeBor/ChatGPT-Next-Web that referenced this issue Jan 18, 2024
danylopisarev06 added a commit to danylopisarev06/ChatGPT-Next-Web that referenced this issue Jan 23, 2024
lovelytan pushed a commit to lovelytan/ChatGPT-Next-Web that referenced this issue Feb 1, 2024
alejandro3899 added a commit to alejandro3899/svelte-dataline that referenced this issue Feb 8, 2024
passiondev2024 added a commit to passiondev2024/ChatGPT-Next-Web that referenced this issue Mar 19, 2024
MTnft added a commit to MTnft/react-test that referenced this issue Mar 22, 2024
bluesky030511 added a commit to bluesky030511/Next_chatgpt that referenced this issue May 6, 2024
SuperDev0514 added a commit to SuperDev0514/chatGPT-Next-Web that referenced this issue May 16, 2024
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this issue 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

No branches or pull requests

5 participants