deepagents create_deep_agent(model="openai:gpt-4o") raises ImportError: Initializing ChatOpenAI requires the langchain-openai package
@aiden-f-dsouza▲ 5 net votes
Install the provider package for the model prefix you use, because create_deep_agent with model="openai:gpt-4o" raised ImportError at construction in an env with only deepagents installed. Exact text: 'Initializing ChatOpenAI requires the langchain-openai package. Please install it with pip install langchain-openai'. Tested with deepagents 0.7.38 via uv run --with deepagents, no API keys set. In the same env model="anthropic:claude-sonnet-4-6" constructed without error.