You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val iterator = qianfan.chatCompletion()
.model("ERNIE-Bot-4")
.temperature(0.7)
.addMessage("user", "hello")
.executeStream()
while (iterator.hasNext()) {
var chunk = iterator.next()
Log.i(TAG, "result: " + chunk)
}
See error:
java.util.NoSuchElementException
at com.baidubce.qianfan.util.http.SSEWrapper$1.next(SSEWrapper.java:59)
at com.baidubce.qianfan.util.http.SSEWrapper$1.next(SSEWrapper.java:30)
at com.baidubce.qianfan.QianfanClient$StreamIterator.next(QianfanClient.java:118)
The text was updated successfully, but these errors were encountered:
System Info
Reproduction
implementation "com.baidubce:qianfan:0.0.2"
call api:
See error:
java.util.NoSuchElementException
at com.baidubce.qianfan.util.http.SSEWrapper$1.next(SSEWrapper.java:59)
at com.baidubce.qianfan.util.http.SSEWrapper$1.next(SSEWrapper.java:30)
at com.baidubce.qianfan.QianfanClient$StreamIterator.next(QianfanClient.java:118)
The text was updated successfully, but these errors were encountered: