mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
chore(mcp): document required session state mutability
This commit is contained in:
parent
37b8f0dce3
commit
42970ca1cf
1 changed files with 2 additions and 2 deletions
|
|
@ -630,7 +630,7 @@ if MCP_AVAILABLE:
|
|||
_stateful_session_active_request_counts: Final[dict[str, int]] = {}
|
||||
_stateful_session_client_info: Final[dict[str, Implementation]] = {} # mutable-ok: cleared on session teardown
|
||||
_terminated_session_ids: Final[dict[str, float]] = {} # mutable-ok: explicitly closed id -> last replay
|
||||
_client_terminated_session_owners: Final[dict[str, str]] = {}
|
||||
_client_terminated_session_owners: Final[dict[str, str]] = {} # mutable-ok: reserve and expire session owners
|
||||
|
||||
class _TerminableTransport(Protocol):
|
||||
async def terminate(self) -> None: ...
|
||||
|
|
@ -2275,7 +2275,7 @@ if MCP_AVAILABLE:
|
|||
):
|
||||
delete_capacity_response: Final = JSONResponse(
|
||||
status_code=429,
|
||||
content={
|
||||
content={ # mutable-ok: JSONResponse content must be a plain dict
|
||||
"error": "Too Many Requests",
|
||||
"details": "Too many recently terminated MCP sessions. Retry after idle records expire.",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue