mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
add cost tracking for pass through imagen
This commit is contained in:
parent
9fcab392a4
commit
4a0fdc40f1
4 changed files with 12 additions and 2 deletions
|
@ -110,6 +110,7 @@ class PassThroughEndpointLogging:
|
|||
from litellm.llms.vertex_ai_and_google_ai_studio.vertex_embeddings.embedding_handler import (
|
||||
transform_vertex_response_to_openai,
|
||||
)
|
||||
from litellm.types.utils import PassthroughCallTypes
|
||||
|
||||
vertex_image_generation_class = VertexImageGeneration()
|
||||
|
||||
|
@ -127,6 +128,10 @@ class PassThroughEndpointLogging:
|
|||
model=model,
|
||||
)
|
||||
)
|
||||
|
||||
logging_obj.call_type = (
|
||||
PassthroughCallTypes.passthrough_image_generation.value
|
||||
)
|
||||
else:
|
||||
litellm_model_response = await transform_vertex_response_to_openai(
|
||||
response=_json_response,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue