Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug] nextchatai中无法使用OpenRouter的API #6463

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

Open
AlexCz22 opened this issue Apr 24, 2025 · 3 comments
Open

[Bug] nextchatai中无法使用OpenRouter的API #6463

AlexCz22 opened this issue Apr 24, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@AlexCz22
Copy link

📦 部署方式

官方安装包

📌 软件版本

Version 3.2.0

💻 系统环境

macOS

📌 系统版本

版本15.3.2 (24D81)

🌐 浏览器

Chrome

📌 浏览器版本

135.0.7049.96(正式版本) (arm64)

🐛 问题描述

自定义openrouter的API之后无法正常和模型对话 模型返回
{ "error": true, "message": "empty response from server" }
我抓了一下包好像没有按照我自定义的baseurl来发送请求 走的还是nextweb自己的请求头

Image

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@AlexCz22 AlexCz22 added the bug Something isn't working label Apr 24, 2025
@Issues-translate-bot
Copy link

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


Title: [Bug] Custom API cannot be used in nextchatai

@AlexCz22 AlexCz22 changed the title [Bug] nextchatai中无法使用自定义的api [Bug] nextchatai中无法使用OpenRouter的API Apr 24, 2025
@AlexCz22
Copy link
Author

我好像发现了错误的原因openrouter的base URL是https://openrouter.ai/api 会比其他第三方多一个/api 不知道是不是这个的影响 每次对话的时候就会出错 但是添加openrouter的时候是可以获取到模型列表的

@Issues-translate-bot
Copy link

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


I seem to find the reason for the error. The base URL of openrouter is https://openrouter.ai/api. There will be one more/api than other third parties. I don’t know if this is the effect. There will be an error every time I add openrouter. However, you can get the model list.

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

2 participants