mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
fix(ollama_chat): drop no-op except to stay under the complexity limit
chunk_parser was exactly at the C901 limit, so the new error check pushed it over. The except Exception: raise e block only re-raised the same error, so removing it keeps behavior the same and brings the function back to the limit.
This commit is contained in:
parent
fde4885a63
commit
4e9ea80c16
1 changed files with 0 additions and 2 deletions
|
|
@ -567,5 +567,3 @@ class OllamaChatCompletionResponseIterator(BaseModelResponseIterator):
|
|||
status_code=400,
|
||||
headers={"Content-Type": "application/json"},
|
||||
)
|
||||
except Exception as e:
|
||||
raise e
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue