From 88f1797dc292262ccf36a806a28578afbbbb4b6b Mon Sep 17 00:00:00 2001 From: Darren Cohen <39422044+dargilco@users.noreply.github.com> Date: Fri, 25 Apr 2025 08:54:29 -0700 Subject: [PATCH 1/4] Auto fix to file red-teams/models.tsp after running `npx tsv .` --- specification/ai/Azure.AI.Projects/red-teams/models.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/ai/Azure.AI.Projects/red-teams/models.tsp b/specification/ai/Azure.AI.Projects/red-teams/models.tsp index 924552662e70..23fd2ee682b6 100644 --- a/specification/ai/Azure.AI.Projects/red-teams/models.tsp +++ b/specification/ai/Azure.AI.Projects/red-teams/models.tsp @@ -110,7 +110,7 @@ union RiskCategory { Sexual: "Sexual", @doc("Represents content related to self-harm.") - SelfHarm: "SelfHarm" + SelfHarm: "SelfHarm", } @doc("Azure OpenAI model configuration. The API version would be selected by the service for querying the model.") From 6d7cabaec7d0094840369c4490c3b40877bbd629 Mon Sep 17 00:00:00 2001 From: Darren Cohen <39422044+dargilco@users.noreply.github.com> Date: Fri, 25 Apr 2025 09:12:05 -0700 Subject: [PATCH 2/4] First --- specification/ai/Azure.AI.Projects/tspconfig.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/ai/Azure.AI.Projects/tspconfig.yaml b/specification/ai/Azure.AI.Projects/tspconfig.yaml index e6e7a9df834a..16d19cdc6c5e 100644 --- a/specification/ai/Azure.AI.Projects/tspconfig.yaml +++ b/specification/ai/Azure.AI.Projects/tspconfig.yaml @@ -37,6 +37,14 @@ options: packageDetails: name: "@azure/ai-projects-1dp" flavor: azure + "@azure-tools/typespec-java": + package-dir: "azure-ai-projects" + namespace: com.azure.ai.projects + partial-update: true + customization-class: customization/src/main/java/ProjectsCustomizations.java + enable-sync-stack: true + generate-tests: false + flavor: azure linter: extends: - "@azure-tools/typespec-azure-rulesets/data-plane" From 4aef58e8b9a40da277afa693ece1f81a8f40c9a7 Mon Sep 17 00:00:00 2001 From: Darren Cohen <39422044+dargilco@users.noreply.github.com> Date: Fri, 25 Apr 2025 09:21:05 -0700 Subject: [PATCH 3/4] More fixes --- specification/ai/Azure.AI.Projects/tspconfig.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/specification/ai/Azure.AI.Projects/tspconfig.yaml b/specification/ai/Azure.AI.Projects/tspconfig.yaml index 16d19cdc6c5e..dc65fc646e6a 100644 --- a/specification/ai/Azure.AI.Projects/tspconfig.yaml +++ b/specification/ai/Azure.AI.Projects/tspconfig.yaml @@ -35,7 +35,7 @@ options: generateTest: true generateMetadata: false packageDetails: - name: "@azure/ai-projects-1dp" + name: "@azure/ai-projects-1dp" flavor: azure "@azure-tools/typespec-java": package-dir: "azure-ai-projects" @@ -45,6 +45,11 @@ options: enable-sync-stack: true generate-tests: false flavor: azure + "@azure-tools/typespec-go": + service-dir: "sdk/ai/projects" + package-dir: "aiprojects" + generate-fakes: true + inject-spans: true linter: extends: - "@azure-tools/typespec-azure-rulesets/data-plane" From 1954eec9f55695e2e3f3b4f13e608fa5248aa2f5 Mon Sep 17 00:00:00 2001 From: Darren Cohen <39422044+dargilco@users.noreply.github.com> Date: Fri, 25 Apr 2025 09:26:17 -0700 Subject: [PATCH 4/4] More fixes --- specification/ai/Azure.AI.Projects/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/ai/Azure.AI.Projects/tspconfig.yaml b/specification/ai/Azure.AI.Projects/tspconfig.yaml index dc65fc646e6a..47940823b97a 100644 --- a/specification/ai/Azure.AI.Projects/tspconfig.yaml +++ b/specification/ai/Azure.AI.Projects/tspconfig.yaml @@ -47,7 +47,7 @@ options: flavor: azure "@azure-tools/typespec-go": service-dir: "sdk/ai/projects" - package-dir: "aiprojects" + package-dir: "azaiprojects" generate-fakes: true inject-spans: true linter: