@@ -24,7 +24,7 @@ public CreateChatCompletionOptions(IEnumerable<ChatMessage> messages, string mod
2424 }
2525
2626#pragma warning disable SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.
27- internal CreateChatCompletionOptions ( IDictionary < string , string > metadata , float ? temperature , float ? topP , string user , ChatServiceTier ? serviceTier , IList < ChatMessage > messages , string model , IList < CreateChatCompletionRequestModality > modalities , ChatReasoningEffortLevel ? reasoningEffort , int ? maxCompletionTokens , float ? frequencyPenalty , float ? presencePenalty , ChatWebSearchOptions webSearchOptions , int ? topLogprobs , ResponseFormat responseFormat , ChatAudioOptions audio , bool ? store , bool ? stream , IList < string > stop , IDictionary < int , int > logitBias , bool ? logprobs , int ? maxTokens , int ? n , ChatOutputPrediction prediction , long ? seed , ChatCompletionStreamOptions streamOptions , IList < ChatTool > tools , BinaryData toolChoice , bool ? parallelToolCalls , BinaryData functionCall , IList < ChatFunction > functions , in JsonPatch patch )
27+ internal CreateChatCompletionOptions ( IDictionary < string , string > metadata , float ? temperature , float ? topP , string user , ChatServiceTier ? serviceTier , IList < ChatMessage > messages , string model , IList < ChatCompletionRequestModality > modalities , ChatReasoningEffortLevel ? reasoningEffort , int ? maxCompletionTokens , float ? frequencyPenalty , float ? presencePenalty , ChatWebSearchOptions webSearchOptions , int ? topLogprobs , ResponseFormat responseFormat , ChatAudioOptions audio , bool ? store , bool ? stream , IList < string > stop , IDictionary < int , int > logitBias , bool ? logprobs , int ? maxTokens , int ? n , ChatOutputPrediction prediction , long ? seed , ChatCompletionStreamOptions streamOptions , IList < ChatTool > tools , BinaryData toolChoice , bool ? parallelToolCalls , BinaryData functionCall , IList < ChatFunction > functions , in JsonPatch patch )
2828 {
2929 // Plugin customization: ensure initialization of collections
3030 Metadata = metadata ?? new ChangeTrackingDictionary < string , string > ( ) ;
@@ -34,7 +34,7 @@ internal CreateChatCompletionOptions(IDictionary<string, string> metadata, float
3434 ServiceTier = serviceTier ;
3535 Messages = messages ?? new ChangeTrackingList < ChatMessage > ( ) ;
3636 Model = model ;
37- Modalities = modalities ?? new ChangeTrackingList < CreateChatCompletionRequestModality > ( ) ;
37+ Modalities = modalities ?? new ChangeTrackingList < ChatCompletionRequestModality > ( ) ;
3838 ReasoningEffort = reasoningEffort ;
3939 MaxCompletionTokens = maxCompletionTokens ;
4040 FrequencyPenalty = frequencyPenalty ;
@@ -77,7 +77,7 @@ internal CreateChatCompletionOptions(IDictionary<string, string> metadata, float
7777
7878 public string Model { get ; set ; }
7979
80- public IList < CreateChatCompletionRequestModality > Modalities { get ; set ; }
80+ public IList < ChatCompletionRequestModality > Modalities { get ; set ; }
8181
8282 public ChatReasoningEffortLevel ? ReasoningEffort { get ; set ; }
8383
@@ -215,11 +215,11 @@ public static CreateChatCompletionOptions Create(IEnumerable<ChatMessage> messag
215215
216216 if ( options . ResponseModalities . HasFlag ( ChatResponseModalities . Audio ) )
217217 {
218- request . Modalities . Add ( CreateChatCompletionRequestModality . Audio ) ;
218+ request . Modalities . Add ( ChatCompletionRequestModality . Audio ) ;
219219 }
220220 if ( options . ResponseModalities . HasFlag ( ChatResponseModalities . Text ) )
221221 {
222- request . Modalities . Add ( CreateChatCompletionRequestModality . Text ) ;
222+ request . Modalities . Add ( ChatCompletionRequestModality . Text ) ;
223223 }
224224 if ( options . StreamOptions != null )
225225 {
@@ -274,7 +274,7 @@ internal static CreateChatCompletionOptions DeserializeCreateChatCompletionReque
274274 ChatServiceTier ? serviceTier = default ;
275275 IList < ChatMessage > messages = default ;
276276 string model = default ;
277- IList < CreateChatCompletionRequestModality > modalities = default ;
277+ IList < ChatCompletionRequestModality > modalities = default ;
278278 ChatReasoningEffortLevel ? reasoningEffort = default ;
279279 int ? maxCompletionTokens = default ;
280280 float ? frequencyPenalty = default ;
@@ -379,7 +379,7 @@ internal static CreateChatCompletionOptions DeserializeCreateChatCompletionReque
379379 {
380380 continue ;
381381 }
382- List < CreateChatCompletionRequestModality > array = new List < CreateChatCompletionRequestModality > ( ) ;
382+ List < ChatCompletionRequestModality > array = new List < ChatCompletionRequestModality > ( ) ;
383383 foreach ( var item in prop . Value . EnumerateArray ( ) )
384384 {
385385 array . Add ( item . GetString ( ) . ToCreateChatCompletionRequestModality ( ) ) ;
@@ -620,7 +620,7 @@ internal static CreateChatCompletionOptions DeserializeCreateChatCompletionReque
620620 serviceTier ,
621621 messages ,
622622 model ,
623- modalities ?? new ChangeTrackingList < CreateChatCompletionRequestModality > ( ) ,
623+ modalities ?? new ChangeTrackingList < ChatCompletionRequestModality > ( ) ,
624624 reasoningEffort ,
625625 maxCompletionTokens ,
626626 frequencyPenalty ,
0 commit comments