Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed: The default model of VertexAIImagegenerator #158

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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