-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
我想用java连接这个api,这么写有什么问题吗,总是只有404 #40
Comments
看起来你是接入点url是错的,应该是https://api.chatanywhere.com.cn/v1/chat/completions |
谢谢,然后就报这个错,应该是服务器传过来的,是表示我的消息的格式不对吗 JSON parse error: Cannot deserialize value of type |
OK了,终于可以了,String json = "{"model": "gpt-3.5-turbo","stream": true,"messages": [{"role": "user","content": "鲁迅和周树人的关系"}]}"; |
OkHttpClient client = new OkHttpClient();
The text was updated successfully, but these errors were encountered: