Hi all, was digging more into the timeout code, an...
# questions
b
Hi all, was digging more into the timeout code, and it seems that when the model sets a hard timeout, there's no upper limit for how high that timeout can be (so hypothetically, a model could set a blocking timeout of several days). I'm curious if this was an explicit reason behind this design decision?
l
We might want to set an upper limit, but we wanted to give the model flexibility. We’d welcome a PR to set a reasonable upper limit that is configurable like the soft limit
b
Thanks! Playing around with this locally, will open a PR if it seems like it is working. Seems like there would be two approaches to this by the way: 1. Explicitly mention the hard timeout in the tool description and raise a validation error if the model passes a timeout greater than this 2. Silently clamp the timeout to the configured value if the model sets it to be higher than the configured value. Currently going with (1) but curious about your thoughts.
l
Yeah, 1 seems better
Thanks!
c
I hope it doesn't make the model more tempted to always set it at the maximum 😅