From 473c41ae74979fded8d9bb199dee84b86aebfeae Mon Sep 17 00:00:00 2001 From: Richard Park Date: Thu, 20 Jul 2023 11:01:38 -0700 Subject: [PATCH] Add in REQUIRED --- sdk/cognitiveservices/azopenai/autorest.md | 2 +- sdk/cognitiveservices/azopenai/models.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/cognitiveservices/azopenai/autorest.md b/sdk/cognitiveservices/azopenai/autorest.md index a52c7a6e707e..1983ef0a5032 100644 --- a/sdk/cognitiveservices/azopenai/autorest.md +++ b/sdk/cognitiveservices/azopenai/autorest.md @@ -286,7 +286,7 @@ directive: where: $ transform: | return $ - .replace(/\/\/ The model name.*?Model \*string/sg, "// DeploymentID specifies the name of the deployment (for Azure OpenAI) or model (for OpenAI) to use for this request.\nDeploymentID string"); + .replace(/\/\/ The model name.*?Model \*string/sg, "// REQUIRED: DeploymentID specifies the name of the deployment (for Azure OpenAI) or model (for OpenAI) to use for this request.\nDeploymentID string"); - from: models_serde.go where: $ diff --git a/sdk/cognitiveservices/azopenai/models.go b/sdk/cognitiveservices/azopenai/models.go index ea672fc50ed6..2eb3a62b490d 100644 --- a/sdk/cognitiveservices/azopenai/models.go +++ b/sdk/cognitiveservices/azopenai/models.go @@ -237,7 +237,7 @@ type ChatCompletionsOptions struct { // The maximum number of tokens to generate. MaxTokens *int32 - // DeploymentID specifies the name of the deployment (for Azure OpenAI) or model (for OpenAI) to use for this request. + // REQUIRED: DeploymentID specifies the name of the deployment (for Azure OpenAI) or model (for OpenAI) to use for this request. DeploymentID string // The number of chat completions choices that should be generated for a chat completions response. Because this setting can @@ -431,7 +431,7 @@ type CompletionsOptions struct { // The maximum number of tokens to generate. MaxTokens *int32 - // DeploymentID specifies the name of the deployment (for Azure OpenAI) or model (for OpenAI) to use for this request. + // REQUIRED: DeploymentID specifies the name of the deployment (for Azure OpenAI) or model (for OpenAI) to use for this request. DeploymentID string // The number of completions choices that should be generated per provided prompt as part of an overall completions response. @@ -579,7 +579,7 @@ type EmbeddingsOptions struct { // inferior results when newlines are present. Input []string - // DeploymentID specifies the name of the deployment (for Azure OpenAI) or model (for OpenAI) to use for this request. + // REQUIRED: DeploymentID specifies the name of the deployment (for Azure OpenAI) or model (for OpenAI) to use for this request. DeploymentID string // An identifier for the caller or end user of the operation. This may be used for tracking or rate-limiting purposes.