mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
fix(router): preserve original traceback in deferred stream fetch error re-raise
Using bare `raise` instead of `raise fetch_err` keeps the full inner traceback from fetch_stream() intact so the error origin is visible in logs and debuggers without being anchored to this line.
This commit is contained in:
parent
c7edad89d4
commit
c63123d4d6
1 changed files with 1 additions and 1 deletions
|
|
@ -2892,7 +2892,7 @@ class Router:
|
|||
if model_name is not None:
|
||||
self.success_calls[model_name] -= 1
|
||||
_strip_http_framing_headers(fetch_err)
|
||||
raise fetch_err
|
||||
raise
|
||||
return await self._acompletion_streaming_iterator(
|
||||
model_response=response,
|
||||
messages=messages,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue