mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
chore: document fusion fault boundaries
This commit is contained in:
parent
1d21c6c2b8
commit
ef3ee26031
2 changed files with 4 additions and 4 deletions
|
|
@ -903,7 +903,7 @@ class FusionRouter:
|
|||
)
|
||||
if isinstance(result, BaseModel):
|
||||
result = result.model_dump() # rebind-ok: orchestration branch state
|
||||
except Exception as exc:
|
||||
except Exception as exc: # noqa: BLE001 # provider search failures become advisory tool results
|
||||
result = { # mutable-ok: local provider payload
|
||||
"status": "error",
|
||||
"error": type(exc).__name__,
|
||||
|
|
@ -1071,7 +1071,7 @@ class FusionRouter:
|
|||
),
|
||||
timeout=self.config.panel_timeout_seconds,
|
||||
)
|
||||
except Exception as exc:
|
||||
except Exception as exc: # noqa: BLE001 # one provider failure must not cancel the parallel panel
|
||||
return FusionPanelFailure(model=model, error_type=type(exc).__name__, failure_reason=_failure_reason(exc))
|
||||
if not isinstance(response, ModelResponse) or (content := _response_text(response)) is None:
|
||||
return FusionPanelFailure(
|
||||
|
|
@ -1116,7 +1116,7 @@ class FusionRouter:
|
|||
),
|
||||
timeout=self.config.panel_timeout_seconds,
|
||||
)
|
||||
except Exception:
|
||||
except Exception: # noqa: BLE001 # analysis is optional when its provider call fails
|
||||
return None
|
||||
return _parse_analysis(_response_text(response)) if isinstance(response, ModelResponse) else None
|
||||
|
||||
|
|
|
|||
|
|
@ -1200,7 +1200,7 @@ def _estimate_fusion_search_cost(
|
|||
optional_params=optional_params,
|
||||
)
|
||||
estimates.append(maximum_searches * (input_cost + output_cost))
|
||||
except Exception:
|
||||
except Exception: # noqa: BLE001 # unknown search pricing makes the reservation estimate unavailable
|
||||
verbose_proxy_logger.debug(
|
||||
"Unable to load Fusion search cost info for budget reservation",
|
||||
exc_info=True,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue