ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
75k stars 59k forks source link

[Bug] Alibaba's DashScope interface is not available #5072

Closed Sherlock290 closed 1 month ago

Sherlock290 commented 1 month ago

📦 Deployment Method

Vercel

📌 Version

2.13.1

💻 Operating System

Windows

📌 System Version

win10 22h2

🌐 Browser

Edge

📌 Browser Version

126.0.2592.113 (正式版本) (64 位)

🐛 Bug Description

Alibaba's DashScope interface cannot be used, but it is normal for me to use the postman test interface. I think it should be a bug or other problem in the project.

image

📷 Recurrence Steps

  1. Configure service provider parameters, select Alibaba, enter baseUrl, enter apiToken; select qwen-plus model
  2. Open a new conversation, type "Hello", and send

🚦 Expected Behavior

Expect a reply: "Hello, if you have any questions or need help, please let me know. " But the actual reply is as follows:

{
  "error": true,
  "message": "Failed to fetch"
}
{
  "error": true,
  "message": "empty response from server"
}

📝 Additional Information

image

image

Snipaste_2024-07-21_18-16-11

image

nextchat-manager[bot] commented 1 month ago

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

Issues-translate-bot commented 1 month ago

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


Title: [Bug]

lloydzhou commented 1 month ago

image

大多数大模型都不支持跨域。也就是说直接在浏览器往模型api发请求,基本都会失败。使用自定义接口的时候,可以只填写apikey,使用默认的接口地址(这个接口地址实际上是使用内置的next server在服务端发请求,这样就能避免出现跨域错误)

Issues-translate-bot commented 1 month ago

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


image

Most large models do not support cross-domain. In other words, sending requests directly to the model api in the browser will basically fail. When using a custom interface, you can only fill in the apikey and use the default interface address (this interface address actually uses the built-in next server to send requests to the server, so as to avoid cross-domain errors)