litellm/tests/test_litellm/integrations/websearch_interception
mateo-berri b103edb588 fix: keep accepting a loop ceiling that spells a whole number
The ceiling used to go through `int(... or 3)`, so anything `int()` accepted
worked. Tightening the new shared validator to `isinstance(int)` turned a
config that boots today into a proxy that refuses to start, because
`max_agentic_loops: os.environ/MAX_AGENTIC_LOOPS` is resolved to a string
before it reaches either check, and a YAML-quoted "5" is a string too.

Accept ints, integral floats, and strings that parse to a whole number. Keep
refusing bools, fractional floats, words, and anything below 1.
2026-08-22 11:24:22 -07:00
..
test_websearch_agentic_loop_cap.py fix: keep accepting a loop ceiling that spells a whole number 2026-08-22 11:24:22 -07:00
test_websearch_chat_completion.py
test_websearch_interception_handler.py fix(websearch_interception): bill and rate limit intercepted searches against the calling key 2026-08-07 02:30:04 +00:00
test_websearch_interception_thinking.py
test_websearch_native_blocks.py fix(websearch): restore snippet text in native web_search_tool_result blocks (LIT-5315) (#36228) 2026-08-07 17:28:55 -07:00
test_websearch_responses.py
test_websearch_short_circuit.py
test_websearch_streaming_wrap.py
test_websearch_thinking_constraint.py