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
Describe the bug
The com.google.gson.stream.MalformedJsonException exception is thrown during TokenStream consumption when using the OllamaStreamingChatModel through the AiServices.
Hi @langchain4j, I've checked the snapshot version but it still does not work.
However it seems that mentioned change is not included in the snapshot build. I can see that last build was on 16/04 where #867 was merged on 19th and is not included in the artifact.
Describe the bug
The
com.google.gson.stream.MalformedJsonException
exception is thrown duringTokenStream
consumption when using theOllamaStreamingChatModel
through theAiServices
.Log and Stack trace
To Reproduce
Expected behavior
No exception is thrown when processing streaming response.
Please complete the following information:
Additional context
The exception is thrown in the
OllamaClient
when the partial response does not contain valid json as presented in the below debug:The text was updated successfully, but these errors were encountered: