mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix(vertex passthrough): add embedContent and batchEmbedContents to TRACKED_VERTEX_ROUTES
This commit is contained in:
parent
0f69ffe3fe
commit
ad1d86e8e6
1 changed files with 11 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue