Commit Graph

2 Commits

Author SHA1 Message Date
hu.yelong 897380dbe1 test(llm_clients): add model validation warning tests for LLM clients
- Add tests to verify warnings for unknown models in OpenAI, Anthropic, and Google clients
- Confirm no warnings are issued for known models in OpenAI client
- Verify OpenRouter provider allows custom models without warnings
- Implement helper assertion for checking single unknown model warning
- Ensure tests patch underlying LLM constructors for isolation and inspection
2026-03-17 14:46:32 +08:00
Yijia Xiao 79051580b8
feat: add multi-provider LLM support with factory pattern
- Add tradingagents/llm_clients/ with unified factory pattern
- Support OpenAI, Anthropic, Google, xAI, OpenRouter, Ollama, vLLM
- Replace direct LLM imports in trading_graph.py with create_llm_client()
- Handle provider-specific params (reasoning_effort, thinking_config)
2026-02-03 22:27:20 +00:00