mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(utils.py): fix streaming rule calling
This commit is contained in:
parent
7600c8f41d
commit
afad40b4f8
1 changed files with 2 additions and 2 deletions
|
@ -8765,8 +8765,8 @@ class CustomStreamWrapper:
|
|||
)
|
||||
)
|
||||
|
||||
self.response_uptil_now += processed_chunk.choices[0].delta.get(
|
||||
"content", ""
|
||||
self.response_uptil_now += (
|
||||
processed_chunk.choices[0].delta.get("content", "") or ""
|
||||
)
|
||||
self.rules.post_call_rules(
|
||||
input=self.response_uptil_now, model=self.model
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue