Skip to content

Commit

Permalink
feat: DIA-1716: Google AI Studio (Gemini) support in Prompts (#6890)
Browse files Browse the repository at this point in the history
Co-authored-by: hakan458 <[email protected]>
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: matt-bernstein <[email protected]>
Co-authored-by: robot-ci-heartex <[email protected]>
  • Loading branch information
5 people authored Jan 29, 2025
1 parent 530e13f commit 751d474
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated by Django 5.1.4 on 2025-01-10 18:38

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
(
"ml_model_providers",
"0006_modelproviderconnection_google_application_credentials_and_more",
),
]

operations = [
migrations.AlterField(
model_name="modelproviderconnection",
name="provider",
field=models.CharField(
choices=[
("OpenAI", "OpenAI"),
("AzureOpenAI", "AzureOpenAI"),
("VertexAI", "VertexAI"),
("Gemini", "Gemini"),
("Custom", "Custom"),
],
default="OpenAI",
max_length=255,
),
),
]
1 change: 1 addition & 0 deletions label_studio/ml_model_providers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class ModelProviders(models.TextChoices):
OPENAI = 'OpenAI', _('OpenAI')
AZURE_OPENAI = 'AzureOpenAI', _('AzureOpenAI')
VERTEX_AI = 'VertexAI', _('VertexAI')
GEMINI = 'Gemini', _('Gemini')
CUSTOM = 'Custom', _('Custom')


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Generated by Django 5.1.4 on 2025-01-10 18:38

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("ml_models", "0013_alter_thirdpartymodelversion_provider"),
]

operations = [
migrations.AlterField(
model_name="thirdpartymodelversion",
name="provider",
field=models.CharField(
choices=[
("OpenAI", "OpenAI"),
("AzureOpenAI", "AzureOpenAI"),
("VertexAI", "VertexAI"),
("Gemini", "Gemini"),
("Custom", "Custom"),
],
default="OpenAI",
help_text="The model provider to use e.g. OpenAI",
max_length=255,
),
),
]
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ django-migration-linter = "^5.1.0"
setuptools = ">=75.4.0"

# Humansignal repo dependencies
label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/4a9715c6b0b619371e89c09ea8d1c86ce5c880df.zip"}
label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/510e71ab176061588a0f7cfec92e43c207bb5d9f.zip"}

[tool.poetry.group.test.dependencies]
pytest = "7.2.2"
Expand Down

0 comments on commit 751d474

Please sign in to comment.