77
88from agent .tools import create_investor_agent_toolkit , create_analytics_agent_toolkit
99
10+ GOOGLE_GEMINI_25_MODEL = "google/gemini-2.5-pro-exp-03-25:free"
11+ GOOGLE_GEMINI_20_FLASH_MODEL = "google/gemini-2.0-flash-001"
12+ DEEPSEEK_CHAT_V3_MODEL = "deepseek/deepseek-chat-v3-0324"
13+ GROK_MODEL = "x-ai/grok-2-1212"
1014
11- REASONING_MODEL = "deepseek/deepseek-chat-v3-0324"
15+ REASONING_MODEL = GROK_MODEL
1216
1317
1418def create_suggestions_executor () -> CompiledGraph :
@@ -17,6 +21,9 @@ def create_suggestions_executor() -> CompiledGraph:
1721 temperature = 0.0 ,
1822 openai_api_base = "https://openrouter.ai/api/v1" ,
1923 openai_api_key = os .getenv ("OPENROUTER_API_KEY" ),
24+ request_timeout = 60 ,
25+ max_tokens = 100 ,
26+ streaming = False
2027 )
2128 agent_executor = create_react_agent (
2229 model = openai_model ,
@@ -32,6 +39,9 @@ def create_investor_executor() -> CompiledGraph:
3239 temperature = 0.0 ,
3340 openai_api_base = "https://openrouter.ai/api/v1" ,
3441 openai_api_key = os .getenv ("OPENROUTER_API_KEY" ),
42+ request_timeout = 60 ,
43+ max_tokens = 4096 ,
44+ streaming = False ,
3545 )
3646 agent_executor = create_react_agent (
3747 model = openai_model , tools = create_investor_agent_toolkit ()
@@ -46,6 +56,9 @@ def create_analytics_executor() -> CompiledGraph:
4656 temperature = 0.0 ,
4757 openai_api_base = "https://openrouter.ai/api/v1" ,
4858 openai_api_key = os .getenv ("OPENROUTER_API_KEY" ),
59+ request_timeout = 60 ,
60+ max_tokens = 4096 ,
61+ streaming = False
4962 )
5063 analytics_executor = create_react_agent (
5164 model = openai_model ,
0 commit comments