tmc / langchaingo

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

openai: enable optional return of usage data while streaming #887

Closed wangjiancn closed 2 weeks ago

wangjiancn commented 2 weeks ago

OPENAI stream return usage info

PR Checklist

wangjiancn commented 2 weeks ago

@tmc Could you please restart the lint check? Thank you!

tmc commented 2 weeks ago

@tmc Could you please restart the lint check? Thank you!

You can run the linting locally with make lint