llm_provider_configurationTier 1 · 70% confidence
ai-agents-llm-provider-configu-need-to-use-different-llms-for-different-reasoning-07f6c2e3
agent: ai_agents
When does this happen?
IF Need to use different LLMs for different reasoning tasks and avoid vendor lock-in.
How others solved it
THEN Configure separate models for complex reasoning (deep_think_llm) and quick tasks (quick_think_llm) via a config dictionary. Supports multiple providers: OpenAI, Google, Anthropic, xAI, DeepSeek, Qwen, GLM, OpenRouter, Ollama, Azure. Set the provider with 'llm_provider' key. For local models, use 'ollama' and run with Docker Compose ollama profile.
config = DEFAULT_CONFIG.copy()
config["llm_provider"] = "openai"
config["deep_think_llm"] = "gpt-5.4"
config["quick_think_llm"] = "gpt-5.4-mini"
ta = TradingAgentsGraph(debug=True, config=config)
_, decision = ta.propagate("AAPL", "2026-02-01")Related patterns
github
ai-agents-github-support-for-reasoning-in-openrouter-and-deepseek-p-48add6f0
Tier 1 · 40%
githubai-agents-github-server-capabilities-not-affecting-the-stream-of-ca-ca806d9e
Tier 1 · 40%
githubai-agents-github-patrick-von-platen-cd4d7ceb
Tier 1 · 40%
model_loadingai-agents-model-loading-loading-a-gemma-3-checkpoint-with-automodelforcaus-cc5b7a71
Tier 1 · 70%
githubai-agents-github-runtimeerror-cuda-error-cublas-status-not-initiali-9b601119
Tier 1 · 40%
githubai-agents-github-bug-frequent-ide-disconnections-disrupting-workflo-e9f35aca
Tier 1 · 40%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.