fix(vertex_httpx.py): support tool calling w/ streaming for vertex ai + gemini

This commit is contained in:
Krrish Dholakia 2024-07-06 14:02:25 -07:00
parent 2452753e08
commit faa88a1ab1
6 changed files with 111 additions and 16 deletions

View file

@ -625,7 +625,11 @@ class Logging:
model_call_details=self.model_call_details
),
call_type=self.call_type,
optional_params=self.optional_params,
optional_params=(
self.optional_params
if hasattr(self, "optional_params")
else {}
),
)
)
if self.dynamic_success_callbacks is not None and isinstance(