From 6be32ab447d1f2a0ecdfad661e34138926d57c32 Mon Sep 17 00:00:00 2001 From: Deyaaeldeen Almahallawi Date: Thu, 18 May 2023 01:04:56 +0000 Subject: [PATCH] [OpenAI] Update properties back from optional to nullable --- .../OpenAI.Inference/models/chat.completions.tsp | 2 +- .../OpenAI.Inference/models/completions.create.tsp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/cognitiveservices/OpenAI.Inference/models/chat.completions.tsp b/specification/cognitiveservices/OpenAI.Inference/models/chat.completions.tsp index 88a9b3fcdd74..26b3641749f2 100644 --- a/specification/cognitiveservices/OpenAI.Inference/models/chat.completions.tsp +++ b/specification/cognitiveservices/OpenAI.Inference/models/chat.completions.tsp @@ -158,7 +158,7 @@ model ChatChoice { @doc("The reason that this chat completions choice completed its generated.") @projectedName("json", "finish_reason") - finishReason?: CompletionsFinishReason; + finishReason: CompletionsFinishReason | null; @doc("The delta message content for a streaming response.") @projectedName("json", "delta") diff --git a/specification/cognitiveservices/OpenAI.Inference/models/completions.create.tsp b/specification/cognitiveservices/OpenAI.Inference/models/completions.create.tsp index 30c51baf842f..21991b645606 100644 --- a/specification/cognitiveservices/OpenAI.Inference/models/completions.create.tsp +++ b/specification/cognitiveservices/OpenAI.Inference/models/completions.create.tsp @@ -189,11 +189,11 @@ model Choice { @doc("The log probabilities model for tokens associated with this completions choice.") @projectedName("json", "logprobs") @projectedName("csharp", "LogProbabilityModel") - logprobs?: CompletionsLogProbabilityModel; + logprobs: CompletionsLogProbabilityModel | null; @doc("Reason for finishing") @projectedName("json", "finish_reason") - finishReason?: CompletionsFinishReason; + finishReason: CompletionsFinishReason | null; } alias NullableFloat = float32 | null;