mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-04 01:48:57 +00:00
A caller that sends no session id gets a fresh upstream session per call, and the SDK lists the upstream's tools on each one to check structured output. When a server sets mcp_info.output_schema_cache_ttl_seconds above 0, remember the first listing page's output schemas per upstream credential for that long and preload them into the session. A remembered schema that rejects the result triggers one fresh list before the verdict, so a loosened schema is still repaired. A schema tightened inside the window is not enforced until the entry expires, which is why the setting defaults to 0 (off) and rejects non-numeric, negative and non-finite values. Also fixes the shared fake upstream, which crashed on a tools/list without params and let the validating test pass for the wrong reason. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| clock_loops.py | ||
| mcp_count_tool_upstream.py | ||
| native_database.py | ||
| stream_chunk_size.py | ||