lzhpo / chatgpt-spring-boot-starter

支持OpenAi所有可用的接口,包括但不限于流式输出和Token计算等,可配置多个API-Key、权重、代理、自定义API等诸多功能...
http://www.lzhpo.com
Apache License 2.0
153 stars 30 forks source link

升级到1.0.9出错 #6

Closed zhouhesheng closed 1 year ago

zhouhesheng commented 1 year ago

1.0.8正常 升级到1.0.9出错。

在本项目中可以重现: 设置 apikey 运行 test application

调用 curl http://127.0.0.1:6060/chat/sse\?message\=what%20is%20python
出错信息如下:

2023-07-04 14:27:36.873 ERROR 50758 --- [.openai.com/...] c.l.c.sse.AbstractEventSourceListener : Execute onFailure method, response: Response{protocol=http/1.1, code=200, message=OK, url=https://api.openai.com/v1/chat/completions}, error: closed Exception in thread "OkHttp Dispatcher" com.lzhpo.chatgpt.exception.OpenAiException: closed at com.lzhpo.chatgpt.sse.AbstractEventSourceListener.onFailure(AbstractEventSourceListener.java:55)

lzhpo commented 1 year ago

已修复,新版本已发布,请使用1.1.0版本。