Skip to content

Commit

Permalink
[typespec-next] React to fix for Azure/typespec-azure#3180 (#24561)
Browse files Browse the repository at this point in the history
* Remove suppressions added as workaround for Azure/typespec-azure#3180
* Update autorest with fix for azure/typespec-azure#3180
  • Loading branch information
mikeharder authored Jun 23, 2023
1 parent 96e645b commit 2fe0db2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
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

0 comments on commit 2fe0db2

Please sign in to comment.