Skip to content
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

通过Access Token反向代理,回答字数过多会报错,无法显示完全 #52

Open
a137235 opened this issue Apr 20, 2023 · 7 comments

Comments

@a137235
Copy link

a137235 commented Apr 20, 2023

SyntaxError: Unexpected number in JSON at position 4
kerwin_chatgpt-app-1 | at JSON.parse ()
kerwin_chatgpt-app-1 | at onMessage (/app/node_modules/.pnpm/chatgpt@5.2.2/node_modules/chatgpt/build/index.js:622:47)
kerwin_chatgpt-app-1 | at (/app/node_modules/.pnpm/chatgpt@5.2.2/node_modules/chatgpt/build/index.js:62:7)
kerwin_chatgpt-app-1 | at parseEventStreamLine (/app/node_modules/.pnpm/eventsource-parser@1.0.0/node_modules/eventsource-parser/src/parse.ts:125:17)

@TimeBye
Copy link

TimeBye commented Apr 21, 2023

遇到同样的问题

@Kerwin1202
Copy link
Member

现在有啥好用的社区反代吗,我之前试了都是超时,所以无法测试复现,得看看是不是上一层框架的问题

@TimeBye
Copy link

TimeBye commented Apr 23, 2023

现在有啥好用的社区反代吗,我之前试了都是超时,所以无法测试复现,得看看是不是上一层框架的问题

https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy

大佬,社区的这个代理就可以 https://ai.fakeopen.com/api/conversation @Kerwin1202

@Kerwin1202
Copy link
Member

现在有啥好用的社区反代吗,我之前试了都是超时,所以无法测试复现,得看看是不是上一层框架的问题

https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy

大佬,社区的这个代理就可以 https://ai.fakeopen.com/api/conversation @Kerwin1202

你正常吗,试了另一个也不行,我就没成功过accesstoken。。

image

image

@TimeBye
Copy link

TimeBye commented Apr 25, 2023

image

image

我搭建的这一个使用代理没有问题,可以给一下你的邮箱吗(临时邮箱也可)?我给你发我搭的这一个地址和用户名及密码

@Kerwin1202
Copy link
Member

倒不用了,刚才发现是我之前 token 找错了。 目前测试了下没啥问题。。不会报错。。。

@Kerwin1202
Copy link
Member

transitive-bullshit/agentic#526 等这个修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants