mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
fix(proxy): resolve pass-through log dispatch lazily so instance patches still apply
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
aacbbe89d6
commit
82ead97961
1 changed files with 5 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ class PassThroughEndpointLogging:
|
|||
self.transcribe_passthrough_logging_handler: Final = (
|
||||
transcribe_handler if transcribe_handler is not None else TranscribePassthroughLoggingHandler()
|
||||
)
|
||||
self._log_dispatch: Final = log_dispatch if log_dispatch is not None else self._handle_logging
|
||||
self._injected_log_dispatch: Final = log_dispatch
|
||||
self.TRACKED_VERTEX_METHOD_ROUTES = (
|
||||
"generateContent",
|
||||
"streamGenerateContent",
|
||||
|
|
@ -103,6 +103,10 @@ class PassThroughEndpointLogging:
|
|||
# Vertex AI Live API WebSocket
|
||||
self.TRACKED_VERTEX_AI_LIVE_ROUTES = ["/vertex_ai/live"]
|
||||
|
||||
@property
|
||||
def _log_dispatch(self) -> PassThroughLogDispatch:
|
||||
return self._injected_log_dispatch if self._injected_log_dispatch is not None else self._handle_logging
|
||||
|
||||
async def _handle_logging(
|
||||
self,
|
||||
logging_obj: LiteLLMLoggingObj,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue