-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: DIA-1715: VertexAI Gemini model support (#6865)
Co-authored-by: hakan458 <[email protected]> Co-authored-by: Matt Bernstein <[email protected]>
- Loading branch information
1 parent
4aba7ad
commit ddd5ead
Showing
3 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
...viders/migrations/0006_modelproviderconnection_google_application_credentials_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Generated by Django 5.1.4 on 2025-01-03 20:58 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
( | ||
"ml_model_providers", | ||
"0005_modelproviderconnection_budget_alert_threshold_and_more", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="modelproviderconnection", | ||
name="google_application_credentials", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="The content of GOOGLE_APPLICATION_CREDENTIALS json file", | ||
null=True, | ||
verbose_name="google application credentials", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="modelproviderconnection", | ||
name="google_location", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Google project location", | ||
max_length=255, | ||
null=True, | ||
verbose_name="google location", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="modelproviderconnection", | ||
name="google_project_id", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Google project ID", | ||
max_length=255, | ||
null=True, | ||
verbose_name="google project id", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="modelproviderconnection", | ||
name="provider", | ||
field=models.CharField( | ||
choices=[ | ||
("OpenAI", "OpenAI"), | ||
("AzureOpenAI", "AzureOpenAI"), | ||
("VertexAI", "VertexAI"), | ||
("Custom", "Custom"), | ||
], | ||
default="OpenAI", | ||
max_length=255, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
label_studio/ml_models/migrations/0013_alter_thirdpartymodelversion_provider.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 5.1.4 on 2025-01-03 20:58 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("ml_models", "0012_alter_thirdpartymodelversion_provider"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="thirdpartymodelversion", | ||
name="provider", | ||
field=models.CharField( | ||
choices=[ | ||
("OpenAI", "OpenAI"), | ||
("AzureOpenAI", "AzureOpenAI"), | ||
("VertexAI", "VertexAI"), | ||
("Custom", "Custom"), | ||
], | ||
default="OpenAI", | ||
help_text="The model provider to use e.g. OpenAI", | ||
max_length=255, | ||
), | ||
), | ||
] |