maodd commited on
Commit
9190f43
·
verified ·
1 Parent(s): 2a57317

Increase max_steps 7 -> 12 to reduce premature cutoffs

Browse files

25% run showed questions hitting max_steps while still making progress, forcing garbled non-tool-call final answers. TokenPacer sleeps stayed short (6-8s), so there's TPM headroom to let runs go longer.

Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -137,7 +137,12 @@ class BasicAgent:
137
  "collections", "statistics", "datetime", "io", "openpyxl", "PIL",
138
  ]),
139
  ],
140
- max_steps=7, # keep runs short: growing history otherwise blows the TPM budget by step ~6
 
 
 
 
 
141
  step_callbacks=[
142
  MemoryTrimmer(),
143
  TokenPacer(tokens_per_minute_budget=int(os.getenv("RATE_LIMIT_TOKENS_PER_MINUTE", "25000"))),
 
137
  "collections", "statistics", "datetime", "io", "openpyxl", "PIL",
138
  ]),
139
  ],
140
+ # 12 (was 7): the 25% run showed several questions still making
141
+ # real progress (finding the right source) when cut off at max
142
+ # steps, forcing a garbled non-tool-call final answer instead of
143
+ # a real one. TokenPacer sleeps stayed short (6-8s) at 7 steps,
144
+ # so there's TPM budget headroom to let runs go longer.
145
+ max_steps=12,
146
  step_callbacks=[
147
  MemoryTrimmer(),
148
  TokenPacer(tokens_per_minute_budget=int(os.getenv("RATE_LIMIT_TOKENS_PER_MINUTE", "25000"))),