










Hey, I’m using ChatLiteLLMRouter with LangGraph. Token count is tracked correctly in LangSmith, but cost is never shown - for any model (OpenAI, Anthropic, Gemini). I tried adding langsmith callback as described here: import litellm from langchain_litellm import ChatLiteLLMRouter litellm.success_callback = ["langsmith"] llm = ChatLiteLLMRouter( # then use `llm` in my graph router=litellm_router, model="heavy", temperature=0, streaming=True, ) This does show tokens + cost, but cr...
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。