fix(vertex passthrough): add embedContent and batchEmbedContents to TRACKED_VERTEX_ROUTES

This commit is contained in:
Ishaan Jaffer 2026-04-21 08:35:16 -07:00
parent 0f69ffe3fe
commit ad1d86e8e6
No known key found for this signature in database

View file

@ -46,6 +46,8 @@ class PassThroughEndpointLogging:
"search",
"batchPredictionJobs",
"predictLongRunning",
"embedContent",
"batchEmbedContents",
]
# Anthropic
@ -283,9 +285,9 @@ class PassThroughEndpointLogging:
standard_logging_response_object = vertex_ai_live_handler_result["result"]
kwargs = vertex_ai_live_handler_result["kwargs"]
return_dict[
"standard_logging_response_object"
] = standard_logging_response_object
return_dict["standard_logging_response_object"] = (
standard_logging_response_object
)
return_dict["kwargs"] = kwargs
return return_dict
@ -308,9 +310,9 @@ class PassThroughEndpointLogging:
standard_logging_response_object: Optional[
PassThroughEndpointLoggingResultValues
] = None
logging_obj.model_call_details[
"passthrough_logging_payload"
] = passthrough_logging_payload
logging_obj.model_call_details["passthrough_logging_payload"] = (
passthrough_logging_payload
)
if self.is_assemblyai_route(url_route):
if (
AssemblyAIPassthroughLoggingHandler._should_log_request(
@ -487,8 +489,8 @@ class PassThroughEndpointLogging:
kwargs["response_cost"] = passthrough_logging_payload.get(
"cost_per_request"
)
logging_obj.model_call_details[
"response_cost"
] = passthrough_logging_payload.get("cost_per_request")
logging_obj.model_call_details["response_cost"] = (
passthrough_logging_payload.get("cost_per_request")
)
return kwargs