Skip to content
Merged
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 @@ -159,7 +159,6 @@ model ChatChoice {
index: int32;

#suppress "@azure-tools/typespec-azure-core/no-nullable" "The operation already returns nulls"
#suppress "@azure-tools/typespec-autorest/union-unsupported" "https://github.com/Azure/typespec-azure/issues/3180"
@doc("The reason that this chat completions choice completed its generated.")
@projectedName("json", "finish_reason")
finishReason: CompletionsFinishReason | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ model Choice {
logprobs: CompletionsLogProbabilityModel | null;

#suppress "@azure-tools/typespec-azure-core/no-nullable" "The operation already returns nulls"
#suppress "@azure-tools/typespec-autorest/union-unsupported" "https://github.com/Azure/typespec-azure/issues/3180"
@doc("Reason for finishing")
@projectedName("json", "finish_reason")
finishReason: CompletionsFinishReason | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@
"description": "The ordered index associated with this chat completions choice."
},
"finish_reason": {
"$ref": "#/definitions/CompletionsFinishReason",
"x-nullable": true,
"x-typespec-name": "CompletionsFinishReason | null",
"description": "The reason that this chat completions choice completed its generated.",
"x-ms-client-name": "finishReason"
Expand Down Expand Up @@ -585,6 +587,8 @@
"description": "The log probabilities model for tokens associated with this completions choice."
},
"finish_reason": {
"$ref": "#/definitions/CompletionsFinishReason",
"x-nullable": true,
"x-typespec-name": "CompletionsFinishReason | null",
"description": "Reason for finishing",
"x-ms-client-name": "finishReason"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@
"description": "The ordered index associated with this chat completions choice."
},
"finish_reason": {
"$ref": "#/definitions/CompletionsFinishReason",
"x-nullable": true,
"x-typespec-name": "CompletionsFinishReason | null",
"description": "The reason that this chat completions choice completed its generated.",
"x-ms-client-name": "finishReason"
Expand Down Expand Up @@ -440,6 +442,8 @@
"description": "The log probabilities model for tokens associated with this completions choice."
},
"finish_reason": {
"$ref": "#/definitions/CompletionsFinishReason",
"x-nullable": true,
"x-typespec-name": "CompletionsFinishReason | null",
"description": "Reason for finishing",
"x-ms-client-name": "finishReason"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@
"description": "The ordered index associated with this chat completions choice."
},
"finish_reason": {
"$ref": "#/definitions/CompletionsFinishReason",
"x-nullable": true,
"x-typespec-name": "CompletionsFinishReason | null",
"description": "The reason that this chat completions choice completed its generated.",
"x-ms-client-name": "finishReason"
Expand Down Expand Up @@ -491,6 +493,8 @@
"description": "The log probabilities model for tokens associated with this completions choice."
},
"finish_reason": {
"$ref": "#/definitions/CompletionsFinishReason",
"x-nullable": true,
"x-typespec-name": "CompletionsFinishReason | null",
"description": "Reason for finishing",
"x-ms-client-name": "finishReason"
Expand Down