mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
⚡️ perf: Remove test violation on each stream chunk
Signed-off-by: Lunik <lunik@tiwabbit.fr>
This commit is contained in:
parent
e7405f105c
commit
9ba9b3891f
1 changed files with 7 additions and 7 deletions
|
|
@ -148,10 +148,10 @@ class _PROXY_AzureContentSafety(
|
|||
content=response.choices[0].message.content, source="output"
|
||||
)
|
||||
|
||||
async def async_post_call_streaming_hook(
|
||||
self,
|
||||
user_api_key_dict: UserAPIKeyAuth,
|
||||
response: str,
|
||||
):
|
||||
self.print_verbose(f"Inside Azure Content-Safety Call-Stream Hook")
|
||||
await self.test_violation(content=response, source="output")
|
||||
#async def async_post_call_streaming_hook(
|
||||
# self,
|
||||
# user_api_key_dict: UserAPIKeyAuth,
|
||||
# response: str,
|
||||
#):
|
||||
# self.print_verbose(f"Inside Azure Content-Safety Call-Stream Hook")
|
||||
# await self.test_violation(content=response, source="output")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue