Skip to content

Commit

Permalink
feat: DIA-1868: Azure AI Studio support in Prompts (#7040)
Browse files Browse the repository at this point in the history
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Matt Bernstein <[email protected]>
Co-authored-by: matt-bernstein <[email protected]>
  • Loading branch information
4 people authored Feb 26, 2025
1 parent 05bde58 commit a3af28e
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Django 5.1.5 on 2025-02-07 16:47

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("ml_model_providers", "0008_alter_modelproviderconnection_provider"),
]

operations = [
migrations.AlterField(
model_name="modelproviderconnection",
name="provider",
field=models.CharField(
choices=[
("OpenAI", "OpenAI"),
("AzureOpenAI", "AzureOpenAI"),
("AzureAIFoundry", "AzureAIFoundry"),
("VertexAI", "VertexAI"),
("Gemini", "Gemini"),
("Anthropic", "Anthropic"),
("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 @@ -11,6 +11,7 @@
class ModelProviders(models.TextChoices):
OPENAI = 'OpenAI', _('OpenAI')
AZURE_OPENAI = 'AzureOpenAI', _('AzureOpenAI')
AZURE_AI_FOUNDRY = 'AzureAIFoundry', _('AzureAIFoundry')
VERTEX_AI = 'VertexAI', _('VertexAI')
GEMINI = 'Gemini', _('Gemini')
ANTHROPIC = 'Anthropic', _('Anthropic')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated by Django 5.1.5 on 2025-02-07 16:47

from django.db import migrations, models


class Migration(migrations.Migration):

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

operations = [
migrations.AlterField(
model_name="thirdpartymodelversion",
name="provider",
field=models.CharField(
choices=[
("OpenAI", "OpenAI"),
("AzureOpenAI", "AzureOpenAI"),
("AzureAIFoundry", "AzureAIFoundry"),
("VertexAI", "VertexAI"),
("Gemini", "Gemini"),
("Anthropic", "Anthropic"),
("Custom", "Custom"),
],
default="OpenAI",
help_text="The model provider to use e.g. OpenAI",
max_length=255,
),
),
]
7 changes: 4 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 @@ -209,7 +209,7 @@ djangorestframework-simplejwt = {extras = ["crypto"], version = "^5.4.0"}
tldextract = ">=5.1.3"

# Humansignal repo dependencies
label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/d953881b2b4567b9381883e35ebf378f9526a55e.zip"}
label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/324323c4e50581f25d4aedc7c42922e01a330d7c.zip"}

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

0 comments on commit a3af28e

Please sign in to comment.