Skip to content

Conversation

sakshi1989
Copy link
Contributor

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.

Without specifying context parameter in invoke was raising "AttributeError: 'NoneType' object has no attribute 'model_provider'"
The empty context needs to be passed to pick the default value from the ContextSchema model_provider attribute
Copy link

vercel bot commented Aug 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
langgraph-docs-preview Ready Ready Preview Comment Aug 18, 2025 7:41pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants