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] Gemini 未正确拼接 #4944

Closed
1 of 3 tasks
iamananba opened this issue Jul 8, 2024 · 3 comments
Closed
1 of 3 tasks

[Bug] Gemini 未正确拼接 #4944

iamananba opened this issue Jul 8, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@iamananba
Copy link

Bug Description

配置Gemini后。gemini机器人发送的请求路径不正确(只有根路径)

Steps to Reproduce

  1. web方式打开项目
  2. 设置中点开自定义接口,选择google
  3. 终端地址输入:https://gemini.xx.cn
  4. 输入密钥
  5. 回到聊天页面,打开控制台。
  6. 选择gemini-pro-1.5-latest机器人,聊一句话
  7. 请求错误,请求网址为:
    https://gemini.xx.cn/?alt=sse
    目标应该为
    https://gemini.xx.cn/v1beta/models/gemini-1.5-pro-latest:generateContent
  8. 回到设置修改版本号为v1beta,抓包。
    请求路径依然为https://gemini.xx.cn/?alt=sse,无任何变化

Expected Behavior

请求路径正确拼接 v1beta/models/gemini-1.5-pro-latest:generateContent

Screenshots

No response

Deployment Method

  • Docker
  • Vercel
  • Server

Desktop OS

window 11

Desktop Browser

chrome

Desktop Browser Version

126

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

@iamananba iamananba added the bug Something isn't working label Jul 8, 2024
@Issues-translate-bot
Copy link

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


Title: [Bug] Gemini is not spliced ​​correctly

@lloydzhou lloydzhou self-assigned this Jul 9, 2024
lloydzhou added a commit to ConnectAI-E/ChatGPT-Next-Web that referenced this issue Jul 12, 2024
@lloydzhou
Copy link
Contributor

@iamananba

最新的main分支应该已经修复当前问题。
不过,自定义接口处不能直接填写官方的地址(可使用/api/google做转发)。因为官方地址不支持跨域。

@Issues-translate-bot
Copy link

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


@iamananba

The latest main branch should have the current issue fixed.
However, the official address cannot be directly filled in at the custom interface (/api/google can be used for forwarding). Because the official address does not support cross-domain.

sijinhui pushed a commit to sijinhui/ChatGPT-Next-Web that referenced this issue Jul 17, 2024
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

3 participants