Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ public Response<BinaryData> getEmbeddingsWithResponse(
* int (Required)
* ]
* }
* finish_reason: String(stopped/tokenLimitReached/contentFiltered) (Required)
* finish_reason: String(stop/length/content_filter) (Required)
* }
* ]
* usage (Required): {
Expand Down Expand Up @@ -645,7 +645,7 @@ public Mono<Response<BinaryData>> getCompletionsWithResponseAsync(
* int (Required)
* ]
* }
* finish_reason: String(stopped/tokenLimitReached/contentFiltered) (Required)
* finish_reason: String(stop/length/content_filter) (Required)
* }
* ]
* usage (Required): {
Expand Down Expand Up @@ -726,7 +726,7 @@ public Response<BinaryData> 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)
* }
* ]
Expand Down Expand Up @@ -811,7 +811,7 @@ public Mono<Response<BinaryData>> 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)
* }
* ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
public final class CompletionsFinishReason extends ExpandableStringEnum<CompletionsFinishReason> {

/** 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.
Expand Down
6 changes: 3 additions & 3 deletions sdk/openai/azure-ai-openai/tsp-location.yaml
Original file line number Diff line number Diff line change
@@ -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