fix: improve DashScope integration and fix import paths
- Fix DashScope adapter import path in trading_graph.py - Improve error handling for DashScope initialization - Add comprehensive DashScope integration testing - Verify all DashScope components work correctly Integration test results: ✅ DashScope adapter import successful ✅ TradingAgentsGraph import with DashScope support ✅ CLI utils include DashScope option (first choice) ✅ DashScope configuration creation ✅ DashScope LLM instances creation DashScope is now fully integrated and ready for use: - Available in CLI as 'DashScope (Alibaba Cloud)' - Supports qwen-turbo, qwen-plus, qwen-max models - Proper error handling for missing API keys - Complete documentation and examples
This commit is contained in:
parent
cdba5bf780
commit
eba4e1f7ec
|
|
@ -12,7 +12,7 @@ from langchain_google_genai import ChatGoogleGenerativeAI
|
|||
|
||||
# Import DashScope adapter if available
|
||||
try:
|
||||
from ..llm_adapters.dashscope_adapter import ChatDashScope
|
||||
from tradingagents.llm_adapters.dashscope_adapter import ChatDashScope
|
||||
DASHSCOPE_AVAILABLE = True
|
||||
except ImportError:
|
||||
DASHSCOPE_AVAILABLE = False
|
||||
|
|
|
|||
Loading…
Reference in New Issue