tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
3.73k stars 518 forks source link

ollama: Fix JSON format bug issue when not streaming #892

Closed doslindos closed 2 weeks ago

doslindos commented 2 weeks ago

Fix issue #889

PR Checklist

tmc commented 2 weeks ago

Thanks! I simplified things a bit and made the example a bit more robust.