mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-26 18:05:48 +03:00
[GH-ISSUE #12] nextchat先显示Failed to fetch而后显示empty response from server;chathub插件报错404;直接用curl命令则后台能正常返回 #11
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rakaki on GitHub (Jul 31, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/12
终端显示如下:
@rakaki commented on GitHub (Jul 31, 2025):
使用chathub插件,终端报错如下:
@justlikemaki commented on GitHub (Jul 31, 2025):
provider 'gemini' 只能用 gemini-2.5-flash 和 gemini-2.5-pro
@justlikemaki commented on GitHub (Jul 31, 2025):
nextchat先显示Failed to fetch,应该是发起options请求的校验,每个客户端请求方式都不一样,没有适配,可以忽略
@rakaki commented on GitHub (Jul 31, 2025):
那么nextchat应该如何配置。我目前是选择openai服务商,接口填http://192.168.31.237:3000,api key是123456,模型选择gpt-4o,现象就是本issue的现象
@justlikemaki commented on GitHub (Jul 31, 2025):
不支持gpt-4o,不能填自定义模型吗?
也可以直接使用gemini服务商来对接。
@rakaki commented on GitHub (Aug 1, 2025):
nextchat采用自定义模型,google接口,仍然没有返回回答,日志如下:
配置:https://youke1.picui.cn/s1/2025/08/01/688c34f9ecaaf.png
@justlovemaki commented on GitHub (Aug 1, 2025):
OPTIONS REQUEST SUCCESS,说明是options请求,并不是发消息用的post请求。ai对话框和命令行的截图有吗?
@justlovemaki commented on GitHub (Aug 1, 2025):
https://github.com/user-attachments/assets/f114efae-6652-492c-87e4-713f634e1242
自定义AI资源,url只能填外网可访问的IP或域名,我是做了内网穿透
@rakaki commented on GitHub (Aug 1, 2025):
@rakaki commented on GitHub (Aug 1, 2025):
请教下您用的是哪个版本的nextchat,我没找到这个功能
@justlovemaki commented on GitHub (Aug 1, 2025):
https://nextchat.club/ 网页版
@justlovemaki commented on GitHub (Aug 1, 2025):
你这个hello的请求都发过去,console模式是会打印输入输出的