mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-17 21:25:46 +02:00
docs (graphapi) : Handle Missing Context in LLM Invocation - Invoking the LLM without explicitly passing a context parameter resulted in the following error: `AttributeError: 'NoneType' object has no attribute 'model_provider'` This occurred because the context was None, and the system attempted to access model_provider. This PR ensures that when context is not provided, an empty context is passed explicitly. This allows the system to correctly fall back to the default value defined in the ContextSchema.model_provider attribute.