Skip to content

Commit

Permalink
parse string env to int
Browse files Browse the repository at this point in the history
  • Loading branch information
selimseker committed Jun 12, 2024
1 parent 47fe496 commit bace81e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dria_searching_agent/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ def AGENT_MODEL_NAME():
return config.agent_model_name

def AGENT_MAX_ITER():
return config.agent_max_iter
try:
int_val = int(config.agent_max_iter)
return int_val
except ValueError:
return 10

def ANTHROPIC_KEY():
return config.anthropic_key
Expand Down

0 comments on commit bace81e

Please sign in to comment.