Skip to content

Commit f4dadc7

Browse files
mikeharderjnlycklama
authored andcommitted
[OpenAI.Inference] Change indent from 4 to 2 spaces for Windows compat (#26192)
1 parent a31144c commit f4dadc7

File tree

6 files changed

+47
-47
lines changed

6 files changed

+47
-47
lines changed

specification/cognitiveservices/OpenAI.Inference/routes/audio_transcription.tsp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ written language corresponding to the language it was spoken in.
2727
@action("audio/transcriptions")
2828
@sharedRoute
2929
op getAudioTranscriptionAsPlainText is Azure.Core.Foundations.ResourceOperation<
30-
Deployment,
31-
AudioTranscriptionOptions, // response_format must be one of: text, srt, vtt
32-
string,
33-
MultipartFormDataRequestHeadersTraits
30+
Deployment,
31+
AudioTranscriptionOptions, // response_format must be one of: text, srt, vtt
32+
string,
33+
MultipartFormDataRequestHeadersTraits
3434
>;
3535

3636
#suppress "@azure-tools/typespec-azure-core/byos" "representation of existing multipart/form-data operation"
@@ -43,8 +43,8 @@ written language corresponding to the language it was spoken in.
4343
@action("audio/transcriptions")
4444
@sharedRoute
4545
op getAudioTranscriptionAsResponseObject is Azure.Core.ResourceAction<
46-
Deployment,
47-
AudioTranscriptionOptions, // response_format must be unspecified (json) or one of: json, verbose_json
48-
AudioTranscription,
49-
MultipartFormDataRequestHeadersTraits
46+
Deployment,
47+
AudioTranscriptionOptions, // response_format must be unspecified (json) or one of: json, verbose_json
48+
AudioTranscription,
49+
MultipartFormDataRequestHeadersTraits
5050
>;

specification/cognitiveservices/OpenAI.Inference/routes/audio_translation.tsp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Gets English language transcribed text and associated metadata from provided spo
2626
@action("audio/translations")
2727
@sharedRoute
2828
op getAudioTranslationAsPlainText is Azure.Core.Foundations.ResourceOperation<
29-
Deployment,
30-
AudioTranslationOptions, // response_format must be one of: text, srt, vtt
31-
string,
32-
MultipartFormDataRequestHeadersTraits
29+
Deployment,
30+
AudioTranslationOptions, // response_format must be one of: text, srt, vtt
31+
string,
32+
MultipartFormDataRequestHeadersTraits
3333
>;
3434

3535
#suppress "@azure-tools/typespec-azure-core/byos" "representation of existing multipart/form-data operation"
@@ -41,8 +41,8 @@ Gets English language transcribed text and associated metadata from provided spo
4141
@action("audio/translations")
4242
@sharedRoute
4343
op getAudioTranslationAsResponseObject is Azure.Core.ResourceAction<
44-
Deployment,
45-
AudioTranslationOptions, // response_format must be unspecified (json) or one of: json, verbose_json
46-
AudioTranslation,
47-
MultipartFormDataRequestHeadersTraits
44+
Deployment,
45+
AudioTranslationOptions, // response_format must be unspecified (json) or one of: json, verbose_json
46+
AudioTranslation,
47+
MultipartFormDataRequestHeadersTraits
4848
>;

specification/cognitiveservices/OpenAI.Inference/routes/common.tsp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ using TypeSpec.Rest;
1111
@doc("A specific deployment")
1212
@TypeSpec.Rest.resource("deployments")
1313
model Deployment {
14-
@visibility("read")
15-
@doc("Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.")
16-
@projectedName("java", "deploymentOrModelName")
17-
@key
18-
deploymentId: string;
14+
@visibility("read")
15+
@doc("Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.")
16+
@projectedName("java", "deploymentOrModelName")
17+
@key
18+
deploymentId: string;
1919
}
2020

2121
// Audio implementation note: depending on the response_format provided in operation request bodies, these operations
@@ -26,7 +26,7 @@ model Deployment {
2626
// that share common characteristics whenever possible.
2727

2828
alias MultipartFormDataRequestHeadersTraits = Azure.Core.Traits.RequestHeadersTrait<{
29-
@doc("The content type for the operation. Always multipart/form-data for this operation.")
30-
@header("content-type")
31-
contentType: "multipart/form-data";
29+
@doc("The content type for the operation. Always multipart/form-data for this operation.")
30+
@header("content-type")
31+
contentType: "multipart/form-data";
3232
}>;

specification/cognitiveservices/OpenAI.Inference/routes/completions.tsp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ provided prompt data.
2222
@actionSeparator("/")
2323
@action("completions") //@convenientAPI(true)
2424
op getCompletions is Azure.Core.ResourceAction<
25-
Deployment,
26-
CompletionsOptions,
27-
Completions
25+
Deployment,
26+
CompletionsOptions,
27+
Completions
2828
>;
2929

3030
@doc("""
@@ -36,9 +36,9 @@ provided prompt data.
3636
@actionSeparator("/")
3737
@action("chat/completions") //@convenientAPI(true)
3838
op getChatCompletions is ResourceAction<
39-
Deployment,
40-
ChatCompletionsOptions,
41-
ChatCompletions
39+
Deployment,
40+
ChatCompletionsOptions,
41+
ChatCompletions
4242
>;
4343

4444
@doc("""
@@ -54,7 +54,7 @@ other augmentations to the base chat completions capabilities.
5454
@actionSeparator("/")
5555
@action("extensions/chat/completions")
5656
op getChatCompletionsWithAzureExtensions is ResourceAction<
57-
Deployment,
58-
ChatCompletionsOptions,
59-
ChatCompletions
57+
Deployment,
58+
ChatCompletionsOptions,
59+
ChatCompletions
6060
>;

specification/cognitiveservices/OpenAI.Inference/routes/embeddings.tsp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Azure.OpenAI;
1717
@actionSeparator("/")
1818
@action("embeddings") //@convenientAPI(true)
1919
op getEmbeddings is Azure.Core.ResourceAction<
20-
Deployment,
21-
EmbeddingsOptions,
22-
Embeddings
20+
Deployment,
21+
EmbeddingsOptions,
22+
Embeddings
2323
>;

specification/cognitiveservices/OpenAI.Inference/routes/images.tsp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,24 @@ namespace Azure.OpenAI;
2323
@added(ServiceApiVersions.v2023_06_01_Preview)
2424
@route("/operations/images/{operationId}")
2525
op getAzureBatchImageGenerationOperationStatus is RpcOperation<
26-
{
27-
@doc(".") @path operationId: string;
28-
},
29-
BatchImageGenerationOperationResponse
26+
{
27+
@doc(".") @path operationId: string;
28+
},
29+
BatchImageGenerationOperationResponse
3030
>;
3131

3232
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" ""
3333
@doc("Starts the generation of a batch of images from a text caption")
3434
@added(ServiceApiVersions.v2023_06_01_Preview)
3535
@route("/images/generations:submit")
3636
@pollingOperation(
37-
getAzureBatchImageGenerationOperationStatus,
38-
{
39-
operationId: ResponseProperty<"id">,
40-
}
37+
getAzureBatchImageGenerationOperationStatus,
38+
{
39+
operationId: ResponseProperty<"id">,
40+
}
4141
)
4242
op beginAzureBatchImageGeneration is OaiLongRunningRpcOperation<
43-
ImageGenerationOptions,
44-
BatchImageGenerationOperationResponse,
45-
BatchImageGenerationOperationResponse
43+
ImageGenerationOptions,
44+
BatchImageGenerationOperationResponse,
45+
BatchImageGenerationOperationResponse
4646
>;

0 commit comments

Comments
 (0)