Commit Graph

4 Commits

Author SHA1 Message Date
yanghu0b 33600b8e6d fix: correct Ollama URL normalization and add Azure OpenAI support
- Fix bug where URL with trailing slash (e.g., http://my-ollama/v1/)
  would incorrectly become http://my-ollama/v1/v1
- Add Azure OpenAI as first-class LLM provider
- Use DRY pattern for environment variable fallbacks in AzureClient
- Address Gemini Code Assist review feedback
2026-03-19 12:18:14 +08:00
阳虎 6bdea25402 fix: address Gemini review feedback for PR #397
- Fix Ollama URL normalization bug (trailing slash edge case)
- Use rstrip('/') before checking /v1 suffix
- Add DRY pattern for Azure env var fallbacks
- Add final newline to azure_client.py
- Use shared OLLAMA_MODELS/AZURE_MODELS constants to avoid duplicates
2026-03-19 12:14:38 +08:00
Yijia Xiao 54cdb146d0
feat: add footer statistics tracking with LangChain callbacks
- Add StatsCallbackHandler for tracking LLM calls, tool calls, and tokens
- Integrate callbacks into TradingAgentsGraph and all LLM clients
- Dynamic agent/report counts based on selected analysts
- Fix report completion counting (tied to agent completion)
2026-02-03 22:27:20 +00: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