mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-17 09:34:48 +00:00
style(proxy): resolve operator timeout without a dict-literal default
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pxz11TQKYvCXvKawNUa2g4
This commit is contained in:
parent
fa1f2188d0
commit
76368ca425
1 changed files with 2 additions and 3 deletions
|
|
@ -3293,10 +3293,9 @@ async def _tinyfish_body_field_names(request: Request) -> frozenset[str]:
|
|||
def _tinyfish_route_timeout() -> float | None:
|
||||
# only raise the 600s default to cover legal 1200s runs; an operator's configured timeout still wins
|
||||
proxy_server: Final = sys.modules.get("litellm.proxy.proxy_server")
|
||||
operator_settings: Final = getattr(proxy_server, "general_settings", None)
|
||||
operator_timeout: Final = (
|
||||
getattr(proxy_server, "general_settings", {}).get("pass_through_request_timeout")
|
||||
if proxy_server is not None
|
||||
else None
|
||||
operator_settings.get("pass_through_request_timeout") if isinstance(operator_settings, Mapping) else None
|
||||
)
|
||||
return None if operator_timeout is not None else TINYFISH_PASSTHROUGH_TIMEOUT_SECONDS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue