From f7795aad623466297b8c1d49af99d3762f449cb6 Mon Sep 17 00:00:00 2001 From: Darren Cohen <39422044+dargilco@users.noreply.github.com> Date: Mon, 10 Mar 2025 22:30:22 -0700 Subject: [PATCH] Run `npx tsp format **\*.tsp` --- .../Azure.AI.Unified/agents/common/models.tsp | 2 +- .../Azure.AI.Unified/agents/files/models.tsp | 2 +- .../Azure.AI.Unified/agents/files/routes.tsp | 2 +- .../ai/Azure.AI.Unified/agents/main.tsp | 2 +- .../agents/messages/routes.tsp | 2 +- .../ai/Azure.AI.Unified/agents/models.tsp | 2 +- .../ai/Azure.AI.Unified/agents/routes.tsp | 2 +- .../agents/run_steps/models.tsp | 2 +- .../agents/run_steps/routes.tsp | 2 +- .../Azure.AI.Unified/agents/runs/models.tsp | 2 +- .../Azure.AI.Unified/agents/runs/routes.tsp | 2 +- .../agents/streaming/events.tsp | 2 +- .../agents/threads/models.tsp | 2 +- .../agents/threads/routes.tsp | 2 +- .../Azure.AI.Unified/agents/tools/models.tsp | 2 +- .../agents/tools/tool_resources.tsp | 2 +- .../agents/vector_stores/common/main.tsp | 2 +- .../vector_stores/file_batches/models.tsp | 2 +- .../vector_stores/file_batches/routes.tsp | 2 +- .../agents/vector_stores/files/models.tsp | 2 +- .../agents/vector_stores/files/routes.tsp | 2 +- .../agents/vector_stores/main.tsp | 2 +- .../agents/vector_stores/models.tsp | 2 +- .../agents/vector_stores/routes.tsp | 2 +- specification/ai/Azure.AI.Unified/client.tsp | 2 +- .../ai/Azure.AI.Unified/common/models.tsp | 133 +++++++++--------- .../Azure.AI.Unified/connections/routes.tsp | 16 ++- .../ai/Azure.AI.Unified/datasets/models.tsp | 1 - .../ai/Azure.AI.Unified/datasets/routes.tsp | 2 +- .../ai/Azure.AI.Unified/indexes/models.tsp | 2 +- specification/ai/Azure.AI.Unified/main.tsp | 2 +- .../models/chat_completions.tsp | 2 +- .../ai/Azure.AI.Unified/models/embeddings.tsp | 2 +- .../ai/Azure.AI.Unified/models/models.tsp | 1 - .../ai/Azure.AI.Unified/models/routes.tsp | 45 +++--- 35 files changed, 131 insertions(+), 125 deletions(-) diff --git a/specification/ai/Azure.AI.Unified/agents/common/models.tsp b/specification/ai/Azure.AI.Unified/agents/common/models.tsp index c3c9aea4c698..2edfd150ca14 100644 --- a/specification/ai/Azure.AI.Unified/agents/common/models.tsp +++ b/specification/ai/Azure.AI.Unified/agents/common/models.tsp @@ -173,4 +173,4 @@ model ResponseFormatJsonSchema { /** The JSON schema object, describing the response format. */ schema: unknown; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/files/models.tsp b/specification/ai/Azure.AI.Unified/agents/files/models.tsp index 5d96c272c21a..db9f82ffd124 100644 --- a/specification/ai/Azure.AI.Unified/agents/files/models.tsp +++ b/specification/ai/Azure.AI.Unified/agents/files/models.tsp @@ -118,4 +118,4 @@ model FileDeletionStatus { @doc("The object type, which is always 'file'.") object: "file"; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/files/routes.tsp b/specification/ai/Azure.AI.Unified/agents/files/routes.tsp index c690bb48b8c6..1ec65732cee1 100644 --- a/specification/ai/Azure.AI.Unified/agents/files/routes.tsp +++ b/specification/ai/Azure.AI.Unified/agents/files/routes.tsp @@ -119,4 +119,4 @@ op getFileContent is Azure.Core.Foundations.Operation< fileId: string; }, bytes ->; \ No newline at end of file +>; diff --git a/specification/ai/Azure.AI.Unified/agents/main.tsp b/specification/ai/Azure.AI.Unified/agents/main.tsp index ab251fd3b5d9..3b662be82ec5 100644 --- a/specification/ai/Azure.AI.Unified/agents/main.tsp +++ b/specification/ai/Azure.AI.Unified/agents/main.tsp @@ -1,2 +1,2 @@ import "./models.tsp"; -import "./routes.tsp"; \ No newline at end of file +import "./routes.tsp"; diff --git a/specification/ai/Azure.AI.Unified/agents/messages/routes.tsp b/specification/ai/Azure.AI.Unified/agents/messages/routes.tsp index 39d81cdfba74..c17c4c833bd5 100644 --- a/specification/ai/Azure.AI.Unified/agents/messages/routes.tsp +++ b/specification/ai/Azure.AI.Unified/agents/messages/routes.tsp @@ -116,4 +116,4 @@ op updateMessage is Azure.Core.Foundations.Operation< ...OptionalNullableMetadata; }, ThreadMessage ->; \ No newline at end of file +>; diff --git a/specification/ai/Azure.AI.Unified/agents/models.tsp b/specification/ai/Azure.AI.Unified/agents/models.tsp index a0b3fbdc9254..9989f3982a26 100644 --- a/specification/ai/Azure.AI.Unified/agents/models.tsp +++ b/specification/ai/Azure.AI.Unified/agents/models.tsp @@ -201,4 +201,4 @@ model AgentDeletionStatus { @doc("The object type, which is always 'assistant.deleted'.") object: "assistant.deleted"; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/routes.tsp b/specification/ai/Azure.AI.Unified/agents/routes.tsp index b0dd99fb2c86..52e7eb551296 100644 --- a/specification/ai/Azure.AI.Unified/agents/routes.tsp +++ b/specification/ai/Azure.AI.Unified/agents/routes.tsp @@ -108,4 +108,4 @@ op deleteAgent is Azure.Core.Foundations.Operation< assistantId: string; }, AgentDeletionStatus ->; \ No newline at end of file +>; diff --git a/specification/ai/Azure.AI.Unified/agents/run_steps/models.tsp b/specification/ai/Azure.AI.Unified/agents/run_steps/models.tsp index 3c547e6c23d9..05d5a1b920c3 100644 --- a/specification/ai/Azure.AI.Unified/agents/run_steps/models.tsp +++ b/specification/ai/Azure.AI.Unified/agents/run_steps/models.tsp @@ -348,4 +348,4 @@ union RunAdditionalFieldList { /** File search result content. */ FileSearchContents: "step_details.tool_calls[*].file_search.results[*].content", -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/run_steps/routes.tsp b/specification/ai/Azure.AI.Unified/agents/run_steps/routes.tsp index 743e355a7a0c..b9d57a3308b2 100644 --- a/specification/ai/Azure.AI.Unified/agents/run_steps/routes.tsp +++ b/specification/ai/Azure.AI.Unified/agents/run_steps/routes.tsp @@ -82,4 +82,4 @@ op listRunSteps is Azure.Core.Foundations.Operation< ...OpenAIListRequestOptions; }, OpenAIPageableListOf ->; \ No newline at end of file +>; diff --git a/specification/ai/Azure.AI.Unified/agents/runs/models.tsp b/specification/ai/Azure.AI.Unified/agents/runs/models.tsp index 5e11df419c11..76a42774636d 100644 --- a/specification/ai/Azure.AI.Unified/agents/runs/models.tsp +++ b/specification/ai/Azure.AI.Unified/agents/runs/models.tsp @@ -479,4 +479,4 @@ union TruncationStrategy { /** The thread will truncate to the `lastMessages` count of recent messages. */ lastMessages: "last_messages", -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/runs/routes.tsp b/specification/ai/Azure.AI.Unified/agents/runs/routes.tsp index 0ec24a265087..a2e9f80695aa 100644 --- a/specification/ai/Azure.AI.Unified/agents/runs/routes.tsp +++ b/specification/ai/Azure.AI.Unified/agents/runs/routes.tsp @@ -202,4 +202,4 @@ op createThreadAndRun is Azure.Core.Foundations.Operation< ...CreateAndRunThreadOptions; }, ThreadRun ->; \ No newline at end of file +>; diff --git a/specification/ai/Azure.AI.Unified/agents/streaming/events.tsp b/specification/ai/Azure.AI.Unified/agents/streaming/events.tsp index cf460b631d00..832477649fdb 100644 --- a/specification/ai/Azure.AI.Unified/agents/streaming/events.tsp +++ b/specification/ai/Azure.AI.Unified/agents/streaming/events.tsp @@ -136,4 +136,4 @@ union DoneEvent { /** Event sent when the stream is done. */ Done: "done", -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/threads/models.tsp b/specification/ai/Azure.AI.Unified/agents/threads/models.tsp index f2d1b9217683..066f01f831dd 100644 --- a/specification/ai/Azure.AI.Unified/agents/threads/models.tsp +++ b/specification/ai/Azure.AI.Unified/agents/threads/models.tsp @@ -75,4 +75,4 @@ model ThreadDeletionStatus { @doc("The object type, which is always 'thread.deleted'.") object: "thread.deleted"; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/threads/routes.tsp b/specification/ai/Azure.AI.Unified/agents/threads/routes.tsp index bdf3e2a23244..edaa0fae93df 100644 --- a/specification/ai/Azure.AI.Unified/agents/threads/routes.tsp +++ b/specification/ai/Azure.AI.Unified/agents/threads/routes.tsp @@ -92,4 +92,4 @@ op deleteThread is Azure.Core.Foundations.Operation< threadId: string; }, ThreadDeletionStatus ->; \ No newline at end of file +>; diff --git a/specification/ai/Azure.AI.Unified/agents/tools/models.tsp b/specification/ai/Azure.AI.Unified/agents/tools/models.tsp index 7e1a2a129c40..fd839e35a592 100644 --- a/specification/ai/Azure.AI.Unified/agents/tools/models.tsp +++ b/specification/ai/Azure.AI.Unified/agents/tools/models.tsp @@ -593,4 +593,4 @@ model AzureFunctionStorageQueue { @doc("The name of an Azure function storage queue.") @encodedName("application/json", "queue_name") queueName: string; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/tools/tool_resources.tsp b/specification/ai/Azure.AI.Unified/agents/tools/tool_resources.tsp index 482af7b79ee5..66ab55adaf0a 100644 --- a/specification/ai/Azure.AI.Unified/agents/tools/tool_resources.tsp +++ b/specification/ai/Azure.AI.Unified/agents/tools/tool_resources.tsp @@ -217,4 +217,4 @@ model UpdateFileSearchToolResourceOptions { @maxItems(1) @encodedName("application/json", "vector_store_ids") vectorStoreIds?: string[]; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/vector_stores/common/main.tsp b/specification/ai/Azure.AI.Unified/agents/vector_stores/common/main.tsp index 9d5abbffb2ed..ed9713a2d910 100644 --- a/specification/ai/Azure.AI.Unified/agents/vector_stores/common/main.tsp +++ b/specification/ai/Azure.AI.Unified/agents/vector_stores/common/main.tsp @@ -140,4 +140,4 @@ model VectorStoreConfigurations { /** Configurations */ @encodedName("application/json", "configuration") storeConfiguration: VectorStoreConfiguration; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/vector_stores/file_batches/models.tsp b/specification/ai/Azure.AI.Unified/agents/vector_stores/file_batches/models.tsp index cda03742378f..ce64405248f1 100644 --- a/specification/ai/Azure.AI.Unified/agents/vector_stores/file_batches/models.tsp +++ b/specification/ai/Azure.AI.Unified/agents/vector_stores/file_batches/models.tsp @@ -42,4 +42,4 @@ model VectorStoreFileBatch { /** Files count grouped by status processed or being processed by this vector store. */ @encodedName("application/json", "file_counts") fileCounts: VectorStoreFileCount; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/vector_stores/file_batches/routes.tsp b/specification/ai/Azure.AI.Unified/agents/vector_stores/file_batches/routes.tsp index 2fc183c36bfb..19246a6a3b34 100644 --- a/specification/ai/Azure.AI.Unified/agents/vector_stores/file_batches/routes.tsp +++ b/specification/ai/Azure.AI.Unified/agents/vector_stores/file_batches/routes.tsp @@ -119,4 +119,4 @@ op listVectorStoreFileBatchFiles is Azure.Core.Foundations.Operation< ...OpenAIListRequestOptions; }, OpenAIPageableListOf ->; \ No newline at end of file +>; diff --git a/specification/ai/Azure.AI.Unified/agents/vector_stores/files/models.tsp b/specification/ai/Azure.AI.Unified/agents/vector_stores/files/models.tsp index e743316572a1..f7455045d144 100644 --- a/specification/ai/Azure.AI.Unified/agents/vector_stores/files/models.tsp +++ b/specification/ai/Azure.AI.Unified/agents/vector_stores/files/models.tsp @@ -103,4 +103,4 @@ model VectorStoreFileDeletionStatus { /** The object type, which is always 'vector_store.deleted'. */ object: "vector_store.file.deleted"; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/vector_stores/files/routes.tsp b/specification/ai/Azure.AI.Unified/agents/vector_stores/files/routes.tsp index 28f9540129b7..2270e7c4179d 100644 --- a/specification/ai/Azure.AI.Unified/agents/vector_stores/files/routes.tsp +++ b/specification/ai/Azure.AI.Unified/agents/vector_stores/files/routes.tsp @@ -111,4 +111,4 @@ op deleteVectorStoreFile is Azure.Core.Foundations.Operation< fileId: string; }, VectorStoreFileDeletionStatus ->; \ No newline at end of file +>; diff --git a/specification/ai/Azure.AI.Unified/agents/vector_stores/main.tsp b/specification/ai/Azure.AI.Unified/agents/vector_stores/main.tsp index 1c683b0cf5a0..3f4e26565998 100644 --- a/specification/ai/Azure.AI.Unified/agents/vector_stores/main.tsp +++ b/specification/ai/Azure.AI.Unified/agents/vector_stores/main.tsp @@ -3,4 +3,4 @@ import "./routes.tsp"; import "./common/main.tsp"; import "./files/main.tsp"; -import "./file_batches/main.tsp"; \ No newline at end of file +import "./file_batches/main.tsp"; diff --git a/specification/ai/Azure.AI.Unified/agents/vector_stores/models.tsp b/specification/ai/Azure.AI.Unified/agents/vector_stores/models.tsp index 5864c32a7ffa..70f85557d83d 100644 --- a/specification/ai/Azure.AI.Unified/agents/vector_stores/models.tsp +++ b/specification/ai/Azure.AI.Unified/agents/vector_stores/models.tsp @@ -158,4 +158,4 @@ model VectorStoreDeletionStatus { /** The object type, which is always 'vector_store.deleted'. */ object: "vector_store.deleted"; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/agents/vector_stores/routes.tsp b/specification/ai/Azure.AI.Unified/agents/vector_stores/routes.tsp index 2967d9cf1a68..37939ca26688 100644 --- a/specification/ai/Azure.AI.Unified/agents/vector_stores/routes.tsp +++ b/specification/ai/Azure.AI.Unified/agents/vector_stores/routes.tsp @@ -102,4 +102,4 @@ op deleteVectorStore is Azure.Core.Foundations.Operation< vectorStoreId: string; }, VectorStoreDeletionStatus ->; \ No newline at end of file +>; diff --git a/specification/ai/Azure.AI.Unified/client.tsp b/specification/ai/Azure.AI.Unified/client.tsp index 086e21510069..5d3f3613c428 100644 --- a/specification/ai/Azure.AI.Unified/client.tsp +++ b/specification/ai/Azure.AI.Unified/client.tsp @@ -1,4 +1,4 @@ import "@azure-tools/typespec-client-generator-core"; import "./main.tsp"; -using Azure.ClientGenerator.Core; \ No newline at end of file +using Azure.ClientGenerator.Core; diff --git a/specification/ai/Azure.AI.Unified/common/models.tsp b/specification/ai/Azure.AI.Unified/common/models.tsp index 0d8feec09a6a..eb3f6dd09a95 100644 --- a/specification/ai/Azure.AI.Unified/common/models.tsp +++ b/specification/ai/Azure.AI.Unified/common/models.tsp @@ -224,7 +224,7 @@ model OutputPathAssetReference extends AssetReferenceBase { #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" @doc("Base definition for an asset.") -model AssetBase { +model AssetBase { @doc("Asset stage") @visibility("read", "create", "update") stage?: string; @@ -260,69 +260,74 @@ alias ResourceCreatedResponse = TypeSpec.Ht alias OkResponse = TypeSpec.Http.Response<200> & T; - alias AdditionalInferenceRequestHeaders = { - @doc(""" - Controls what happens if extra parameters, undefined by the REST API, - are passed in the JSON request payload. - This sets the HTTP request header `extra-parameters`. - """) - @header("extra-parameters") - extra_params?: ExtraParameters; - }; - - @doc("Controls what happens if extra parameters, undefined by the REST API, are passed in the JSON request payload.") - union ExtraParameters { - string, - - @doc("The service will error if it detected extra parameters in the request payload. This is the service default.") - error: "error", - - @doc("The service will ignore (drop) extra parameters in the request payload. It will only pass the known parameters to the back-end AI model.") - drop: "drop", - - @doc("The service will pass extra parameters to the back-end AI model.") - pass_through: "pass-through", - } - - // Pending upload spec - - // Define a URI alias for clarity. - alias Uri = string; - - enum PendingUploadType { - None, - TemporaryBlobReference, - } - - enum PendingUploadCredentialType { - SAS, - } - - model PendingUploadRequest { - /// If PendingUploadId is not provided, a random guid will be used. - pendingUploadId?: string; - /// TemporaryBlobReference is the only supported type. - pendingUploadType: PendingUploadType.TemporaryBlobReference; - } - - model PendingUploadResponse { - /// Container-level read, write, list SAS. - blobReferenceForConsumption: BlobReferenceForConsumption; - /// ID for this upload request. - pendingUploadId: string; - /// TemporaryBlobReference is the only supported type. - pendingUploadType: PendingUploadType.TemporaryBlobReference; - } - - model BlobReferenceForConsumption { - /// Blob URI path for client to upload data. - /// Example: https://blob.windows.core.net/Container/Path - blobUri: Uri; - /// ARM ID of the storage account to use. - storageAccountArmId: string; - /// Credential info to access the storage account. - credential: SasCredential; - } +alias AdditionalInferenceRequestHeaders = { + @doc(""" + Controls what happens if extra parameters, undefined by the REST API, + are passed in the JSON request payload. + This sets the HTTP request header `extra-parameters`. + """) + @header("extra-parameters") + extra_params?: ExtraParameters; +}; + +@doc("Controls what happens if extra parameters, undefined by the REST API, are passed in the JSON request payload.") +union ExtraParameters { + string, + + @doc("The service will error if it detected extra parameters in the request payload. This is the service default.") + error: "error", + + @doc("The service will ignore (drop) extra parameters in the request payload. It will only pass the known parameters to the back-end AI model.") + drop: "drop", + + @doc("The service will pass extra parameters to the back-end AI model.") + pass_through: "pass-through", +} + +// Pending upload spec + +// Define a URI alias for clarity. +alias Uri = string; + +enum PendingUploadType { + None, + TemporaryBlobReference, +} + +enum PendingUploadCredentialType { + SAS, +} + +model PendingUploadRequest { + /// If PendingUploadId is not provided, a random guid will be used. + pendingUploadId?: string; + + /// TemporaryBlobReference is the only supported type. + pendingUploadType: PendingUploadType.TemporaryBlobReference; +} + +model PendingUploadResponse { + /// Container-level read, write, list SAS. + blobReferenceForConsumption: BlobReferenceForConsumption; + + /// ID for this upload request. + pendingUploadId: string; + + /// TemporaryBlobReference is the only supported type. + pendingUploadType: PendingUploadType.TemporaryBlobReference; +} + +model BlobReferenceForConsumption { + /// Blob URI path for client to upload data. + /// Example: https://blob.windows.core.net/Container/Path + blobUri: Uri; + + /// ARM ID of the storage account to use. + storageAccountArmId: string; + + /// Credential info to access the storage account. + credential: SasCredential; +} @doc(""" The definition of a caller-specified function that chat completions may invoke in response to matching user input. diff --git a/specification/ai/Azure.AI.Unified/connections/routes.tsp b/specification/ai/Azure.AI.Unified/connections/routes.tsp index f507ef0ce27d..e2cd14716029 100644 --- a/specification/ai/Azure.AI.Unified/connections/routes.tsp +++ b/specification/ai/Azure.AI.Unified/connections/routes.tsp @@ -24,17 +24,21 @@ interface Connections { get is ConnectionOperations.ResourceRead; @doc("Get connection with secrets by name.") - getWithCredentials is ConnectionOperations.ResourceAction; + getWithCredentials is ConnectionOperations.ResourceAction< + Connection, + {}, + Connection + >; @doc("List all connections in the project") list is ConnectionOperations.ResourceList< Connection, ListQueryParametersTrait<{ - @doc("Specific type of connection to return in list") - @query("$connectionCategory") - connectionCategory?: ConnectionCategory, + @doc("Specific type of connection to return in list") + @query("$connectionCategory") + connectionCategory?: ConnectionCategory; - ...StandardListQueryParameters; - }> + ...StandardListQueryParameters; + }> >; } diff --git a/specification/ai/Azure.AI.Unified/datasets/models.tsp b/specification/ai/Azure.AI.Unified/datasets/models.tsp index 33b6bb182e65..a4a0e59f2d7b 100644 --- a/specification/ai/Azure.AI.Unified/datasets/models.tsp +++ b/specification/ai/Azure.AI.Unified/datasets/models.tsp @@ -27,7 +27,6 @@ union DatasetType { uri_folder: "uri_folder", } - #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" @doc("DatasetVersion Definition") @discriminator("datasetType") diff --git a/specification/ai/Azure.AI.Unified/datasets/routes.tsp b/specification/ai/Azure.AI.Unified/datasets/routes.tsp index b09e5bfe8984..9d12ed5ea8f4 100644 --- a/specification/ai/Azure.AI.Unified/datasets/routes.tsp +++ b/specification/ai/Azure.AI.Unified/datasets/routes.tsp @@ -131,6 +131,6 @@ interface Datasets { @doc("Pensing upload request.") @body - pendingUploadRequest: PendingUploadRequest + pendingUploadRequest: PendingUploadRequest, ): PendingUploadResponse; } diff --git a/specification/ai/Azure.AI.Unified/indexes/models.tsp b/specification/ai/Azure.AI.Unified/indexes/models.tsp index d1d586d1ab9d..f34ec3193a6e 100644 --- a/specification/ai/Azure.AI.Unified/indexes/models.tsp +++ b/specification/ai/Azure.AI.Unified/indexes/models.tsp @@ -79,7 +79,7 @@ model EmbeddingConfiguration { connectionId?: string; @doc("Deployment name of embedding model") - deploymentName: string; + deploymentName: string; @doc("Embedding field") embeddingField: string; diff --git a/specification/ai/Azure.AI.Unified/main.tsp b/specification/ai/Azure.AI.Unified/main.tsp index 579b4c6a5aff..8ac49da5b9f6 100644 --- a/specification/ai/Azure.AI.Unified/main.tsp +++ b/specification/ai/Azure.AI.Unified/main.tsp @@ -62,4 +62,4 @@ namespace Azure.AI.Unified { @useDependency(Azure.Core.Versions.v1_0_Preview_2) `2025-05-01-preview`, } -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/models/chat_completions.tsp b/specification/ai/Azure.AI.Unified/models/chat_completions.tsp index 35af197d375a..fedcd35ed80d 100644 --- a/specification/ai/Azure.AI.Unified/models/chat_completions.tsp +++ b/specification/ai/Azure.AI.Unified/models/chat_completions.tsp @@ -723,4 +723,4 @@ model ChatCompletionsAudio { @doc("The transcript of the audio file.") transcript: string; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/models/embeddings.tsp b/specification/ai/Azure.AI.Unified/models/embeddings.tsp index 6b707f8ac954..98febf6f01d2 100644 --- a/specification/ai/Azure.AI.Unified/models/embeddings.tsp +++ b/specification/ai/Azure.AI.Unified/models/embeddings.tsp @@ -136,4 +136,4 @@ model EmbeddingsOptions { `model`?: string; ...Record; -} \ No newline at end of file +} diff --git a/specification/ai/Azure.AI.Unified/models/models.tsp b/specification/ai/Azure.AI.Unified/models/models.tsp index aa7811b5709b..b88387bba976 100644 --- a/specification/ai/Azure.AI.Unified/models/models.tsp +++ b/specification/ai/Azure.AI.Unified/models/models.tsp @@ -56,7 +56,6 @@ model Model { systemData: SystemData; } - #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" @doc("Sku information") model Sku { diff --git a/specification/ai/Azure.AI.Unified/models/routes.tsp b/specification/ai/Azure.AI.Unified/models/routes.tsp index 358dfcf64b44..894f5ae469e4 100644 --- a/specification/ai/Azure.AI.Unified/models/routes.tsp +++ b/specification/ai/Azure.AI.Unified/models/routes.tsp @@ -23,7 +23,6 @@ alias ModelServiceTraits = SupportsClientRequestId & alias ModelOperations = Azure.Core.ResourceOperations; interface Models { - @doc("Get a deployed model.") get is ModelOperations.ResourceRead; @@ -31,31 +30,31 @@ interface Models { list is ModelOperations.ResourceList< Model, ListQueryParametersTrait<{ - @doc("Model publisher to filter models by") - @query("$modelPublisher") - modelPublisher?: string, - - @doc("Model name (the publisher specific name) to filter models by") - @query("$modelName") - modelName?: string, - - @doc("Flag to include models from connections in response.") - @query("$includeConnectedModels") - includeConnectionModels?: boolean, - - ...StandardListQueryParameters; - }>, + @doc("Model publisher to filter models by") + @query("$modelPublisher") + modelPublisher?: string; + + @doc("Model name (the publisher specific name) to filter models by") + @query("$modelName") + modelName?: string; + + @doc("Flag to include models from connections in response.") + @query("$includeConnectedModels") + includeConnectionModels?: boolean; + + ...StandardListQueryParameters; + }> >; @doc(""" - Gets chat completions for the provided chat messages. - Completions support a wide variety of tasks and generate text that continues from or "completes" - provided prompt data. The method makes a REST API call to the `/chat/completions` route - on the given endpoint. - """) + Gets chat completions for the provided chat messages. + Completions support a wide variety of tasks and generate text that continues from or "completes" + provided prompt data. The method makes a REST API call to the `/chat/completions` route + on the given endpoint. + """) @actionSeparator("/") @route("models/chat/completions") - op getChatCompletions is Azure.Core.RpcOperation< + getChatCompletions is Azure.Core.RpcOperation< { @doc("The parameters of the chat completions request.") @body @@ -72,7 +71,7 @@ interface Models { """) @actionSeparator("/") @route("models/embeddings") - op getEmbeddings is Azure.Core.RpcOperation< + getEmbeddings is Azure.Core.RpcOperation< { @doc("The parameters of the embeddings request.") @body @@ -89,7 +88,7 @@ interface Models { """) @actionSeparator("/") @route("models/images/embeddings") - op getImageEmbeddings is Azure.Core.RpcOperation< + getImageEmbeddings is Azure.Core.RpcOperation< { @doc("The parameters of the image embeddings request.") @body