Skip to content

Commit ece6cb5

Browse files
author
Adam Balogh
committed
tokens
1 parent 3e05c43 commit ece6cb5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

agent/agent_executors.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def create_routing_model() -> BaseChatModel:
5757
model=ROUTING_MODEL,
5858
temperature=0.0,
5959
google_api_key=API_KEY,
60+
max_tokens=500,
6061
)
6162

6263

@@ -65,6 +66,7 @@ def create_suggestions_model() -> BaseChatModel:
6566
model=SUGGESTIONS_MODEL,
6667
temperature=0.3,
6768
google_api_key=API_KEY,
69+
max_tokens=1000,
6870
)
6971

7072

@@ -73,6 +75,7 @@ def create_investor_executor() -> CompiledGraph:
7375
model=REASONING_MODEL,
7476
temperature=0.0,
7577
google_api_key=API_KEY,
78+
max_tokens=4096,
7679
)
7780
agent_executor = create_react_agent(
7881
model=openai_model, tools=create_investor_agent_toolkit()
@@ -86,6 +89,7 @@ def create_analytics_executor(token_metadata_repo: TokenMetadataRepo) -> Compile
8689
model=REASONING_MODEL,
8790
temperature=0.0,
8891
google_api_key=API_KEY,
92+
max_tokens=4096,
8993
)
9094
analytics_executor = create_react_agent(
9195
model=openai_model,

0 commit comments

Comments
 (0)