fix(utils.py): fix streaming rule calling

This commit is contained in:
Krrish Dholakia 2024-02-12 22:36:32 -08:00
parent 7600c8f41d
commit afad40b4f8

View file

@ -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