Files
langchain/libs/partners/ollama/langchain_ollama
Mason Daugherty 0346ac0fa2 fix(ollama): trace invoke model override (#37502)
If you override the model at invoke time — e.g. `chat.invoke(messages,
model="llama3.2")` or `chat.bind(model="llama3.2")` - traces previously
logged the model the `ChatOllama` instance was constructed with, not the
one that ran. Tracing now reflects the runtime override, so dashboards,
filters, and cost/latency breakdowns line up with what really executed.
2026-05-18 13:51:35 -05:00
..