@@ -1056,6 +1056,7 @@ public class AudioClient {
10561056 public AudioClient ( string model , ApiKeyCredential credential , OpenAIClientOptions options ) ;
10571057 public AudioClient ( string model , ApiKeyCredential credential ) ;
10581058 public AudioClient ( string model , string apiKey ) ;
1059+ public string Model { get ; }
10591060 public ClientPipeline Pipeline { get ; }
10601061 public virtual ClientResult GenerateSpeech ( BinaryContent content , RequestOptions options = null ) ;
10611062 public virtual ClientResult < BinaryData > GenerateSpeech ( string text , GeneratedSpeechVoice voice , SpeechGenerationOptions options = null , CancellationToken cancellationToken = default ) ;
@@ -1403,6 +1404,7 @@ public class ChatClient {
14031404 public ChatClient ( string model , ApiKeyCredential credential , OpenAIClientOptions options ) ;
14041405 public ChatClient ( string model , ApiKeyCredential credential ) ;
14051406 public ChatClient ( string model , string apiKey ) ;
1407+ public string Model { get ; }
14061408 public ClientPipeline Pipeline { get ; }
14071409 public virtual ClientResult < ChatCompletion > CompleteChat ( params ChatMessage [ ] messages ) ;
14081410 public virtual ClientResult CompleteChat ( BinaryContent content , RequestOptions options = null ) ;
@@ -1431,6 +1433,14 @@ public class ChatClient {
14311433 [ Experimental ( "OPENAI001" ) ]
14321434 public virtual Task < ClientResult < ChatCompletion > > GetChatCompletionAsync ( string completionId , CancellationToken cancellationToken = default ) ;
14331435 [ Experimental ( "OPENAI001" ) ]
1436+ public virtual CollectionResult < ChatCompletionMessageListDatum > GetChatCompletionMessages ( string completionId , ChatCompletionCollectionOptions options = null , CancellationToken cancellationToken = default ) ;
1437+ [ Experimental ( "OPENAI001" ) ]
1438+ public virtual CollectionResult GetChatCompletionMessages ( string completionId , string after , int ? limit , string order , RequestOptions options ) ;
1439+ [ Experimental ( "OPENAI001" ) ]
1440+ public virtual AsyncCollectionResult < ChatCompletionMessageListDatum > GetChatCompletionMessagesAsync ( string completionId , ChatCompletionMessageCollectionOptions options = null , CancellationToken cancellationToken = default ) ;
1441+ [ Experimental ( "OPENAI001" ) ]
1442+ public virtual AsyncCollectionResult GetChatCompletionMessagesAsync ( string completionId , string after , int ? limit , string order , RequestOptions options ) ;
1443+ [ Experimental ( "OPENAI001" ) ]
14341444 public virtual CollectionResult < ChatCompletion > GetChatCompletions ( ChatCompletionCollectionOptions options = null , CancellationToken cancellationToken = default ) ;
14351445 [ Experimental ( "OPENAI001" ) ]
14361446 public virtual CollectionResult GetChatCompletions ( string after , int ? limit , string order , IDictionary < string , string > metadata , string model , RequestOptions options ) ;
@@ -1503,6 +1513,29 @@ public class ChatCompletionDeletionResult : IJsonModel<ChatCompletionDeletionRes
15031513 protected virtual ChatCompletionDeletionResult PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
15041514 protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
15051515 }
1516+ [ Experimental ( "OPENAI001" ) ]
1517+ public class ChatCompletionMessageCollectionOptions : IJsonModel < ChatCompletionMessageCollectionOptions > , IPersistableModel < ChatCompletionMessageCollectionOptions > {
1518+ public string AfterId { get ; set ; }
1519+ public ChatCompletionCollectionOrder ? Order { get ; set ; }
1520+ public int ? PageSizeLimit { get ; set ; }
1521+ protected virtual ChatCompletionMessageCollectionOptions JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
1522+ protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
1523+ protected virtual ChatCompletionMessageCollectionOptions PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
1524+ protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
1525+ }
1526+ [ Experimental ( "OPENAI001" ) ]
1527+ public class ChatCompletionMessageListDatum : IJsonModel < ChatCompletionMessageListDatum > , IPersistableModel < ChatCompletionMessageListDatum > {
1528+ public IList < ChatMessageAnnotation > Annotations { get ; }
1529+ public ChatOutputAudio Audio { get ; }
1530+ public string Content { get ; }
1531+ public string Id { get ; }
1532+ public string Refusal { get ; }
1533+ public IReadOnlyList < ChatToolCall > ToolCalls { get ; }
1534+ protected virtual ChatCompletionMessageListDatum JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
1535+ protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
1536+ protected virtual ChatCompletionMessageListDatum PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
1537+ protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
1538+ }
15061539 public class ChatCompletionOptions : IJsonModel < ChatCompletionOptions > , IPersistableModel < ChatCompletionOptions > {
15071540 public bool ? AllowParallelToolCalls { get ; set ; }
15081541 [ Experimental ( "OPENAI001" ) ]
@@ -2277,6 +2310,7 @@ public class EmbeddingClient {
22772310 public EmbeddingClient ( string model , ApiKeyCredential credential , OpenAIClientOptions options ) ;
22782311 public EmbeddingClient ( string model , ApiKeyCredential credential ) ;
22792312 public EmbeddingClient ( string model , string apiKey ) ;
2313+ public string Model { get ; }
22802314 public ClientPipeline Pipeline { get ; }
22812315 public virtual ClientResult < OpenAIEmbedding > GenerateEmbedding ( string input , EmbeddingGenerationOptions options = null , CancellationToken cancellationToken = default ) ;
22822316 public virtual Task < ClientResult < OpenAIEmbedding > > GenerateEmbeddingAsync ( string input , EmbeddingGenerationOptions options = null , CancellationToken cancellationToken = default ) ;
@@ -3239,6 +3273,7 @@ public class ImageClient {
32393273 public ImageClient ( string model , ApiKeyCredential credential , OpenAIClientOptions options ) ;
32403274 public ImageClient ( string model , ApiKeyCredential credential ) ;
32413275 public ImageClient ( string model , string apiKey ) ;
3276+ public string Model { get ; }
32423277 public ClientPipeline Pipeline { get ; }
32433278 public virtual ClientResult < GeneratedImage > GenerateImage ( string prompt , ImageGenerationOptions options = null , CancellationToken cancellationToken = default ) ;
32443279 public virtual Task < ClientResult < GeneratedImage > > GenerateImageAsync ( string prompt , ImageGenerationOptions options = null , CancellationToken cancellationToken = default ) ;
@@ -3425,6 +3460,7 @@ public class ModerationClient {
34253460 public ModerationClient ( string model , ApiKeyCredential credential , OpenAIClientOptions options ) ;
34263461 public ModerationClient ( string model , ApiKeyCredential credential ) ;
34273462 public ModerationClient ( string model , string apiKey ) ;
3463+ public string Model { get ; }
34283464 public ClientPipeline Pipeline { get ; }
34293465 public virtual ClientResult ClassifyText ( BinaryContent content , RequestOptions options = null ) ;
34303466 public virtual ClientResult < ModerationResultCollection > ClassifyText ( IEnumerable < string > inputs , CancellationToken cancellationToken = default ) ;
0 commit comments