forked from phoenix/litellm-mirror
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(
|
self.response_uptil_now += (
|
||||||
"content", ""
|
processed_chunk.choices[0].delta.get("content", "") or ""
|
||||||
)
|
)
|
||||||
self.rules.post_call_rules(
|
self.rules.post_call_rules(
|
||||||
input=self.response_uptil_now, model=self.model
|
input=self.response_uptil_now, model=self.model
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue