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

流式调用时异常 #5

Closed
VarleyT opened this issue Mar 5, 2023 · 4 comments
Closed

流式调用时异常 #5

VarleyT opened this issue Mar 5, 2023 · 4 comments

Comments

@VarleyT
Copy link

VarleyT commented Mar 5, 2023

image
image

@VarleyT
Copy link
Author

VarleyT commented Mar 5, 2023

依赖版本是1.0.3

@gulihua10010
Copy link
Owner

我这边建了一个新的项目 运行是可以的,你的项目是不是之前引入过别的版本的 okhttp 的依赖呢,导致依赖冲突呢

@soulForLove
Copy link

soulForLove commented Mar 5, 2023

我这边建了一个新的项目 运行是可以的,你的项目是不是之前引入过别的版本的 okhttp 的依赖呢,导致依赖冲突呢

我把之前的版本依赖删了,也是会出现这个,在流模式
Exception in thread "OkHttp Dispatcher" java.lang.NullPointerException
at cn.jianwoo.openai.chatgptapi.stream.HttpAsyncClientUtil$1.onFailure(HttpAsyncClientUtil.java:81)
at okhttp3.internal.sse.RealEventSource.onFailure(RealEventSource.java:105)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:180)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

@gulihua10010
Copy link
Owner

gulihua10010 commented Mar 5, 2023

是一个问题,已经修复并且部署sdk了<version>1.0.4</version>
同步到中央仓库可能会有延迟

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