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

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics