forked from phoenix/litellm-mirror
add ImageObject
This commit is contained in:
parent
a4f906b464
commit
2519879e67
5 changed files with 111 additions and 4 deletions
|
@ -3874,7 +3874,7 @@ def image_generation(
|
|||
or optional_params.pop("vertex_ai_credentials", None)
|
||||
or get_secret("VERTEXAI_CREDENTIALS")
|
||||
)
|
||||
model_response = vertex_chat_completion.aimage_generation( # type: ignore
|
||||
model_response = vertex_chat_completion.image_generation(
|
||||
model=model,
|
||||
prompt=prompt,
|
||||
timeout=timeout,
|
||||
|
@ -3883,6 +3883,7 @@ def image_generation(
|
|||
model_response=model_response,
|
||||
vertex_project=vertex_ai_project,
|
||||
vertex_location=vertex_ai_location,
|
||||
aimg_generation=aimg_generation,
|
||||
)
|
||||
|
||||
return model_response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue