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

SyntaxError: Unexpected token 你 in JSON at position 0 #11

Closed
DuanShaoCheng opened this issue May 8, 2023 · 5 comments
Closed

SyntaxError: Unexpected token 你 in JSON at position 0 #11

DuanShaoCheng opened this issue May 8, 2023 · 5 comments

Comments

@DuanShaoCheng
Copy link

curl 请求之后返回了
你好!很高兴为您提供帮助。请问有什么问题我可以帮您解答吗? SyntaxError: Unexpected token 你 in JSON at position 0
按照文档
curl "http:https://127.0.0.1:3000/ask?prompt=你好啊&model=forefront&gptmodel=gpt-4&resignup=1"
执行之后报错,看着它不是json却用json进行了解析

@xiangsx
Copy link
Owner

xiangsx commented May 8, 2023

1 回头我看下

@DuanShaoCheng
Copy link
Author

hi 我还想了解下,它的上下文是怎么处理的。

@xiangsx
Copy link
Owner

xiangsx commented May 8, 2023

有个chatid 可以作为query传进去

@xiangsx
Copy link
Owner

xiangsx commented May 8, 2023

但是gpt4只能用5次,就得换账号,如果使用gpt-3.5那保留上下文 会有点用

@DuanShaoCheng
Copy link
Author

但是gpt4只能用5次,就得换账号,如果使用gpt-3.5那保留上下文 会有点用

明白了,感谢~~

@xiangsx xiangsx closed this as completed May 9, 2023
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

2 participants