Skip to content

Commit

Permalink
fixed: The default model of VertexAIImagegenerator (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
sahusiddharth authored Jan 2, 2024
1 parent 492a0ae commit 50ae54c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@component
class VertexAIImageGenerator:
def __init__(self, *, model: str = "imagetext", project_id: str, location: Optional[str] = None, **kwargs):
def __init__(self, *, model: str = "imagegeneration", project_id: str, location: Optional[str] = None, **kwargs):
"""
Generates images using a Google Vertex AI model.
Expand All @@ -21,7 +21,7 @@ def __init__(self, *, model: str = "imagetext", project_id: str, location: Optio
https://cloud.google.com/docs/authentication/provide-credentials-adc
:param project_id: ID of the GCP project to use.
:param model: Name of the model to use, defaults to "imagetext".
:param model: Name of the model to use, defaults to "imagegeneration".
:param location: The default location to use when making API calls, if not set uses us-central-1.
Defaults to None.
:param kwargs: Additional keyword arguments to pass to the model.
Expand Down

0 comments on commit 50ae54c

Please sign in to comment.