Home
Sign Up
Sign In
V2EX
›
问与答
nextchat 这个工具好奇怪
glouhao
·
Jan 4, 2025
· 2090 views
This topic created in 546 days ago, the information mentioned may be changed or developed.
我弄的 poe-to-gpt 接口已经在其他地方测试可以正常使用了,但是在这个 nextchat 里始终用不上啊,非常奇怪。
客户端和网页端都是 Failed to fetch
网页本地是直接能访问的,chatbox 里使用正常,我想弄 web 端和家人一块用的,所以弄个网页版。
nextchat
poe-to-gpt
failed
6 replies
1
stobacco
Jan 4, 2025
是不是 api 没走 https ,nextchat 页面确是 https
2
glouhao
OP
Jan 4, 2025
@
stobacco
#1 谢谢,现在 web 还是连接不上,本地客户端更新下可以了。回头换个服务器试试。看日志完全没连接到。
3
glouhao
OP
Jan 5, 2025
@
stobacco
#1 OPTIONS /v1/chat/completions HTTP/1.0" 405 Method Not Allowed 这个 option 请求是浏览器自主发起的导致的错误,应该怎么避免呢?
4
glouhao
OP
Jan 5, 2025
后端用的 poe-to-gpt 这个服务,他貌似不支持 OPTIONS 请求。
5
stobacco
Jan 6, 2025
@
glouhao
#3 这个是跨域检测的请求,你两个服务应该部署在不同的域名吧?
解决办法:
1. 给你的 api 服务配置允许跨域
2. nextchat 和 api 服务部署在同一个域
6
glouhao
OP
Jan 10, 2025 via Android
@
stobacco
谢谢,我在 claude 大力支持下修改了 poe-to-gpt 源码,支持了跨域。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2708 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 45ms ·
UTC 12:13
·
PVG 20:13
·
LAX 05:13
·
JFK 08:13
♥ Do have faith in what you're doing.
❯