@@ -1466,6 +1466,14 @@ public class ChatClient {
14661466 public virtual AsyncCollectionResult < ChatCompletion > GetChatCompletionsAsync ( ChatCompletionCollectionOptions options = null , CancellationToken cancellationToken = default ) ;
14671467 [ Experimental ( "OPENAI001" ) ]
14681468 public virtual AsyncCollectionResult GetChatCompletionsAsync ( string after , int ? limit , string order , IDictionary < string , string > metadata , string model , RequestOptions options ) ;
1469+ [ Experimental ( "OPENAI001" ) ]
1470+ public virtual ClientResult UpdateChatCompletion ( string completionId , BinaryContent content , RequestOptions options = null ) ;
1471+ [ Experimental ( "OPENAI001" ) ]
1472+ public virtual ClientResult < ChatCompletion > UpdateChatCompletion ( string completionId , IDictionary < string , string > metadata , CancellationToken cancellationToken = default ) ;
1473+ [ Experimental ( "OPENAI001" ) ]
1474+ public virtual Task < ClientResult > UpdateChatCompletionAsync ( string completionId , BinaryContent content , RequestOptions options = null ) ;
1475+ [ Experimental ( "OPENAI001" ) ]
1476+ public virtual Task < ClientResult < ChatCompletion > > UpdateChatCompletionAsync ( string completionId , IDictionary < string , string > metadata , CancellationToken cancellationToken = default ) ;
14691477 }
14701478 public class ChatCompletion : IJsonModel < ChatCompletion > , IPersistableModel < ChatCompletion > {
14711479 [ Experimental ( "OPENAI001" ) ]
@@ -1534,19 +1542,34 @@ public class ChatCompletionDeletionResult : IJsonModel<ChatCompletionDeletionRes
15341542 [ Experimental ( "OPENAI001" ) ]
15351543 public class ChatCompletionMessageCollectionOptions : IJsonModel < ChatCompletionMessageCollectionOptions > , IPersistableModel < ChatCompletionMessageCollectionOptions > {
15361544 public string AfterId { get ; set ; }
1537- public ChatCompletionCollectionOrder ? Order { get ; set ; }
1545+ public ChatCompletionMessageCollectionOrder ? Order { get ; set ; }
15381546 public int ? PageSizeLimit { get ; set ; }
15391547 protected virtual ChatCompletionMessageCollectionOptions JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
15401548 protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
15411549 protected virtual ChatCompletionMessageCollectionOptions PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
15421550 protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
15431551 }
15441552 [ Experimental ( "OPENAI001" ) ]
1553+ public readonly partial struct ChatCompletionMessageCollectionOrder : IEquatable < ChatCompletionMessageCollectionOrder > {
1554+ public ChatCompletionMessageCollectionOrder ( string value ) ;
1555+ public static ChatCompletionMessageCollectionOrder Ascending { get ; }
1556+ public static ChatCompletionMessageCollectionOrder Descending { get ; }
1557+ public readonly bool Equals ( ChatCompletionMessageCollectionOrder other ) ;
1558+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
1559+ public override readonly bool Equals ( object obj ) ;
1560+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
1561+ public override readonly int GetHashCode ( ) ;
1562+ public static bool operator == ( ChatCompletionMessageCollectionOrder left , ChatCompletionMessageCollectionOrder right ) ;
1563+ public static implicit operator ChatCompletionMessageCollectionOrder ( string value ) ;
1564+ public static bool operator != ( ChatCompletionMessageCollectionOrder left , ChatCompletionMessageCollectionOrder right ) ;
1565+ public override readonly string ToString ( ) ;
1566+ }
1567+ [ Experimental ( "OPENAI001" ) ]
15451568 public class ChatCompletionMessageListDatum : IJsonModel < ChatCompletionMessageListDatum > , IPersistableModel < ChatCompletionMessageListDatum > {
1546- public IList < ChatMessageAnnotation > Annotations { get ; }
1547- public ChatOutputAudio Audio { get ; }
1569+ public IReadOnlyList < ChatMessageAnnotation > Annotations { get ; }
15481570 public string Content { get ; }
15491571 public string Id { get ; }
1572+ public ChatOutputAudio OutputAudio { get ; }
15501573 public string Refusal { get ; }
15511574 public IReadOnlyList < ChatToolCall > ToolCalls { get ; }
15521575 protected virtual ChatCompletionMessageListDatum JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
0 commit comments