brainlid / langchain

Elixir implementation of a LangChain style framework.
https://hexdocs.pm/langchain/
Other
503 stars 58 forks source link

add support for TokenUsage through callbacks #137

Closed brainlid closed 3 weeks ago

brainlid commented 3 weeks ago

Token information is returned in different ways from each model. The biggest challenge is how it's returned with streaming deltas. More extensive changes were needed to make it work well.