From 7b3d70d49148eafd4285b4dd6daed65669090b6c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 21 Jun 2023 23:31:28 +0000 Subject: [PATCH] CodeGen from PR 24541 in Azure/azure-rest-api-specs Merge b02dff5f996b218056c68c78fb3d4b72440e03a7 into 9aec843715b0bc99bef5bd26f50939ddc3f7b632 --- .../azure/ai/openai/implementation/OpenAIClientImpl.java | 8 ++++---- .../azure/ai/openai/models/CompletionsFinishReason.java | 6 +++--- sdk/openai/azure-ai-openai/tsp-location.yaml | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/implementation/OpenAIClientImpl.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/implementation/OpenAIClientImpl.java index 4f2ee8fe0b2a..76a402b59424 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/implementation/OpenAIClientImpl.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/implementation/OpenAIClientImpl.java @@ -548,7 +548,7 @@ public Response getEmbeddingsWithResponse( * int (Required) * ] * } - * finish_reason: String(stopped/tokenLimitReached/contentFiltered) (Required) + * finish_reason: String(stop/length/content_filter) (Required) * } * ] * usage (Required): { @@ -645,7 +645,7 @@ public Mono> getCompletionsWithResponseAsync( * int (Required) * ] * } - * finish_reason: String(stopped/tokenLimitReached/contentFiltered) (Required) + * finish_reason: String(stop/length/content_filter) (Required) * } * ] * usage (Required): { @@ -726,7 +726,7 @@ public Response getCompletionsWithResponse( * content: String (Optional) * } * index: int (Required) - * finish_reason: String(stopped/tokenLimitReached/contentFiltered) (Required) + * finish_reason: String(stop/length/content_filter) (Required) * delta (Optional): (recursive schema, see delta above) * } * ] @@ -811,7 +811,7 @@ public Mono> getChatCompletionsWithResponseAsync( * content: String (Optional) * } * index: int (Required) - * finish_reason: String(stopped/tokenLimitReached/contentFiltered) (Required) + * finish_reason: String(stop/length/content_filter) (Required) * delta (Optional): (recursive schema, see delta above) * } * ] diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/CompletionsFinishReason.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/CompletionsFinishReason.java index f82f7226e851..c267098eca5b 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/CompletionsFinishReason.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/CompletionsFinishReason.java @@ -12,15 +12,15 @@ public final class CompletionsFinishReason extends ExpandableStringEnum { /** Completions ended normally and reached its end of token generation. */ - @Generated public static final CompletionsFinishReason STOPPED = fromString("stopped"); + @Generated public static final CompletionsFinishReason STOPPED = fromString("stop"); /** Completions exhausted available token limits before generation could complete. */ - @Generated public static final CompletionsFinishReason TOKEN_LIMIT_REACHED = fromString("tokenLimitReached"); + @Generated public static final CompletionsFinishReason TOKEN_LIMIT_REACHED = fromString("length"); /** * Completions generated a response that was identified as potentially sensitive per content moderation policies. */ - @Generated public static final CompletionsFinishReason CONTENT_FILTERED = fromString("contentFiltered"); + @Generated public static final CompletionsFinishReason CONTENT_FILTERED = fromString("content_filter"); /** * Creates a new instance of CompletionsFinishReason value. diff --git a/sdk/openai/azure-ai-openai/tsp-location.yaml b/sdk/openai/azure-ai-openai/tsp-location.yaml index a8e2785e61e8..9e8d1404254a 100644 --- a/sdk/openai/azure-ai-openai/tsp-location.yaml +++ b/sdk/openai/azure-ai-openai/tsp-location.yaml @@ -1,5 +1,5 @@ directory: specification/cognitiveservices/OpenAI.Inference -additionalDirectories: - - specification/cognitiveservices/OpenAI.Authoring -commit: fe056966cf070be84e92dd2dc1b566bae35002cf +commit: fe91bd8e8895cd0f82cf560c755c151747a392ce +additionalDirectories: [] repo: Azure/azure-rest-api-specs +