Closed PengLx closed 1 year ago
测试使用达芬奇模型无此问题
应该是你的参数入参有问题。建议断点看下。 这个报错是官方返回的
`
val client = buildClient() val eventSourceListener = ChatEventSourceListener(chat, Model.CHATGPT_3_5_TURBO) val message = Message.builder().role(Message.Role.USER).content("你好啊我的伙伴!").build() val chatCompletion = ChatCompletion.builder().messages(listOf(message)).build() client!!.streamChatCompletion(chatCompletion, eventSourceListener) val countDownLatch = CountDownLatch(1)
try {
countDownLatch.await()
} catch (e: InterruptedException) {
e.printStackTrace()
}`
即使使用样例也是发出同样的返回 OpenAiStreamClientTest.java
@PengLx 可以进群去具体看下你的问题
`try {
错误显示
OpenAI SSE链接异常 data: { "error": { "message": "Invalid URL (POST /v1/chat/completions)", "type": "invalid_request_error", "param": null, "code": null } } 异常 null