Revert "fix(vertex_anthropic.py): Vertex Anthropic tool calling - native params "

This commit is contained in:
Krish Dholakia 2024-07-03 17:55:37 -07:00 committed by GitHub
parent 318077edea
commit 6c5c8bbb28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 38 additions and 139 deletions

View file

@ -426,22 +426,13 @@ class Logging:
self.model_call_details["additional_args"] = additional_args
self.model_call_details["log_event_type"] = "post_api_call"
if json_logs:
verbose_logger.debug(
"RAW RESPONSE:\n{}\n\n".format(
self.model_call_details.get(
"original_response", self.model_call_details
)
),
)
else:
print_verbose(
"RAW RESPONSE:\n{}\n\n".format(
self.model_call_details.get(
"original_response", self.model_call_details
)
verbose_logger.debug(
"RAW RESPONSE:\n{}\n\n".format(
self.model_call_details.get(
"original_response", self.model_call_details
)
)
),
)
if self.logger_fn and callable(self.logger_fn):
try:
self.logger_fn(