Repository navigation
UiPath LangChain Client [langchain-v1.19.0]
·
3 commits
to main
since this release
[1.19.0] - 2026-09-09
Added
UiPathBaseChatModelnow surfaces the LLM Gateway's per-request dollar cost asresponse_metadata["associated_dollar_cost"]when the caller opted in by sendingX-UiPath-LlmGateway-IncludeAssociatedDollarCost: true(e.g. viadefault_headers) on a passthrough model.invoke()/ainvoke()set it on the result message.stream()/astream()(andinvoke()routed through streaming) yield one extra empty chunk carrying it after the vendor's last chunk, since the gateway only reports the cost after the terminal event; merging the chunks folds it intoresponse_metadata. Covers all passthrough chat models, including the Bedrock ones: the gateway's trailingcostMetadataevent is decoded by the core client and hidden from langchain-aws. Opted-in Gemini streams additionally log langchain-google-genai's "Gemini produced an empty response" warning for the gateway's trailing frame; the cost is still surfaced. The key is absent when the gateway did not price the call — absence means "not priced", never $0.
Changed
- Requires
uipath-llm-client>=1.19.0.