NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

不支持groq兼容的openai endpoint[Bug]

Open GitSarp opened this issue 2 years ago • 9 comments

Bug Description

想使用groq的llama3模型,docker-compose配置了

- "BASE_URL=https://api.groq.com/openai/v1"
- "OPENAI_API_KEY=xxxxx"

使用模型后,返回错误: { "error": { "message": "Unknown request URL: POST /openai/v1/v1/chat/completions. Please check the URL for typos, or see the docs at https://console.groq.com/docs/", "type": "invalid_request_error", "code": "unknown_url" } } next-web上Gemini模型正常使用;groq api在open-webui上使用正常

Steps to Reproduce

  1. docker-compose配置了
- "BASE_URL=https://api.groq.com/openai/v1"
- "OPENAI_API_KEY=xxxxx"
  1. 启动容器,访问异常 { "error": { "message": "Unknown request URL: POST /openai/v1/v1/chat/completions. Please check the URL for typos, or see the docs at https://console.groq.com/docs/", "type": "invalid_request_error", "code": "unknown_url" } }

Expected Behavior

希望可以使用groq的llama3模型

Screenshots

No response

Deployment Method

  • [ ] Docker
  • [ ] Vercel
  • [ ] Server

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

GitSarp avatar Apr 30 '24 08:04 GitSarp

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


Title: Groq-compatible openai endpoint is not supported [Bug]

Issues-translate-bot avatar Apr 30 '24 08:04 Issues-translate-bot

把v1去掉试试,链接拼错了

Kosette avatar Apr 30 '24 09:04 Kosette

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


Try removing v1, the link is spelled wrong

Issues-translate-bot avatar Apr 30 '24 09:04 Issues-translate-bot

把v1去掉试试,链接拼错了

应该不是错的,文档在这里 https://console.groq.com/docs/openai ,不过稍后我也会尝试下

GitSarp avatar Apr 30 '24 10:04 GitSarp

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


Try removing v1, the link is misspelled

It shouldn't be wrong, the documentation is here https://console.groq.com/docs/openai, but I will try it later.

Issues-translate-bot avatar Apr 30 '24 10:04 Issues-translate-bot

把v1去掉试试,链接拼错了

去掉应该是可以了,谢谢!(模型是在变量中配置增加的)

GitSarp avatar Apr 30 '24 10:04 GitSarp

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


Try removing v1, the link is misspelled

It should be OK to remove it, thank you! (The model is configured in variables)

Issues-translate-bot avatar Apr 30 '24 10:04 Issues-translate-bot

我有一样的问题,但是删掉v1还是不行

LuyaoZhuang avatar May 11 '24 07:05 LuyaoZhuang

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


I have the same problem, but deleting v1 still doesn’t work.

Issues-translate-bot avatar May 11 '24 07:05 Issues-translate-bot