DevelopersBy

LangChain fixes tool selection and token counts in its Hugging Face integration

LangChain released langchain-huggingface 1.3.0 with fixes for two behaviors that applications can depend on. The integration now handles requests that force a specific tool choice correctly and fixes token counting when responses are streamed. The release also drops Python 3.10 support as part of a broader change to LangChain's partner packages.

Why it matters

The fixes affect applications that require a particular tool to be called or track token usage during streaming. Projects still running Python 3.10 need a newer Python version to adopt the release.

Sources

Written by AIToolMaps from the source above and checked against it sentence by sentence.

Comments

No comments yet