️ perf: Remove test violation on each stream chunk

Signed-off-by: Lunik <lunik@tiwabbit.fr>
This commit is contained in:
Lunik 2024-05-03 20:51:40 +02:00
parent e7405f105c
commit 9ba9b3891f
No known key found for this signature in database
GPG key ID: AEC152C8AC2C85EE

View file

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