@@ -342,7 +342,7 @@ public class CodeInterpreterToolDefinition : ToolDefinition, IJsonModel<CodeInte
342342 CodeInterpreterToolDefinition IPersistableModel < CodeInterpreterToolDefinition > . Create ( BinaryData data , ModelReaderWriterOptions options ) ;
343343 string IPersistableModel < CodeInterpreterToolDefinition > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
344344 BinaryData IPersistableModel < CodeInterpreterToolDefinition > . Write ( ModelReaderWriterOptions options ) ;
345- protected override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
345+ protected internal override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
346346 }
347347 public class CodeInterpreterToolResources : IJsonModel < CodeInterpreterToolResources > , IPersistableModel < CodeInterpreterToolResources > {
348348 public IList < string > FileIds { get ; set ; }
@@ -359,7 +359,7 @@ public class FileSearchToolDefinition : ToolDefinition, IJsonModel<FileSearchToo
359359 FileSearchToolDefinition IPersistableModel < FileSearchToolDefinition > . Create ( BinaryData data , ModelReaderWriterOptions options ) ;
360360 string IPersistableModel < FileSearchToolDefinition > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
361361 BinaryData IPersistableModel < FileSearchToolDefinition > . Write ( ModelReaderWriterOptions options ) ;
362- protected override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
362+ protected internal override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
363363 }
364364 public class FileSearchToolResources : IJsonModel < FileSearchToolResources > , IPersistableModel < FileSearchToolResources > {
365365 public IList < VectorStoreCreationHelper > NewVectorStores { get ; }
@@ -382,7 +382,7 @@ public class FunctionToolDefinition : ToolDefinition, IJsonModel<FunctionToolDef
382382 FunctionToolDefinition IPersistableModel < FunctionToolDefinition > . Create ( BinaryData data , ModelReaderWriterOptions options ) ;
383383 string IPersistableModel < FunctionToolDefinition > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
384384 BinaryData IPersistableModel < FunctionToolDefinition > . Write ( ModelReaderWriterOptions options ) ;
385- protected override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
385+ protected internal override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
386386 }
387387 public class MessageCollectionOptions {
388388 public string AfterId { get ; set ; }
@@ -955,7 +955,7 @@ public abstract class ToolDefinition : IJsonModel<ToolDefinition>, IPersistableM
955955 ToolDefinition IPersistableModel < ToolDefinition > . Create ( BinaryData data , ModelReaderWriterOptions options ) ;
956956 string IPersistableModel < ToolDefinition > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
957957 BinaryData IPersistableModel < ToolDefinition > . Write ( ModelReaderWriterOptions options ) ;
958- protected abstract void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
958+ protected internal abstract void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
959959 }
960960 public class ToolOutput : IJsonModel < ToolOutput > , IPersistableModel < ToolOutput > {
961961 public ToolOutput ( ) ;
@@ -1084,13 +1084,25 @@ public class AudioTranslationOptions : IJsonModel<AudioTranslationOptions>, IPer
10841084 string IPersistableModel < AudioTranslationOptions > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
10851085 BinaryData IPersistableModel < AudioTranslationOptions > . Write ( ModelReaderWriterOptions options ) ;
10861086 }
1087- public enum GeneratedSpeechFormat {
1088- Mp3 = 0 ,
1089- Opus = 1 ,
1090- Aac = 2 ,
1091- Flac = 3 ,
1092- Wav = 4 ,
1093- Pcm = 5
1087+ public readonly partial struct GeneratedSpeechFormat : IEquatable < GeneratedSpeechFormat > {
1088+ private readonly object _dummy ;
1089+ private readonly int _dummyPrimitive ;
1090+ public GeneratedSpeechFormat ( string value ) ;
1091+ public static GeneratedSpeechFormat Aac { get ; }
1092+ public static GeneratedSpeechFormat Flac { get ; }
1093+ public static GeneratedSpeechFormat Mp3 { get ; }
1094+ public static GeneratedSpeechFormat Opus { get ; }
1095+ public static GeneratedSpeechFormat Pcm { get ; }
1096+ public static GeneratedSpeechFormat Wav { get ; }
1097+ public readonly bool Equals ( GeneratedSpeechFormat other ) ;
1098+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
1099+ public override readonly bool Equals ( object obj ) ;
1100+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
1101+ public override readonly int GetHashCode ( ) ;
1102+ public static bool operator == ( GeneratedSpeechFormat left , GeneratedSpeechFormat right ) ;
1103+ public static implicit operator GeneratedSpeechFormat ( string value ) ;
1104+ public static bool operator != ( GeneratedSpeechFormat left , GeneratedSpeechFormat right ) ;
1105+ public override readonly string ToString ( ) ;
10941106 }
10951107 public readonly partial struct GeneratedSpeechVoice : IEquatable < GeneratedSpeechVoice > {
10961108 private readonly object _dummy ;
@@ -1120,7 +1132,7 @@ public static class OpenAIAudioModelFactory {
11201132 }
11211133 public class SpeechGenerationOptions : IJsonModel < SpeechGenerationOptions > , IPersistableModel < SpeechGenerationOptions > {
11221134 public GeneratedSpeechFormat ? ResponseFormat { get ; set ; }
1123- public float ? Speed { get ; set ; }
1135+ public float ? SpeedRatio { get ; set ; }
11241136 SpeechGenerationOptions IJsonModel < SpeechGenerationOptions > . Create ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
11251137 void IJsonModel < SpeechGenerationOptions > . Write ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
11261138 SpeechGenerationOptions IPersistableModel < SpeechGenerationOptions > . Create ( BinaryData data , ModelReaderWriterOptions options ) ;
@@ -1203,7 +1215,7 @@ public class AssistantChatMessage : ChatMessage, IJsonModel<AssistantChatMessage
12031215 AssistantChatMessage IPersistableModel < AssistantChatMessage > . Create ( BinaryData data , ModelReaderWriterOptions options ) ;
12041216 string IPersistableModel < AssistantChatMessage > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
12051217 BinaryData IPersistableModel < AssistantChatMessage > . Write ( ModelReaderWriterOptions options ) ;
1206- protected override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
1218+ protected internal override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
12071219 }
12081220 public class ChatClient {
12091221 protected ChatClient ( ) ;
@@ -1335,7 +1347,7 @@ public abstract class ChatMessage : IJsonModel<ChatMessage>, IPersistableModel<C
13351347 ChatMessage IPersistableModel < ChatMessage > . Create ( BinaryData data , ModelReaderWriterOptions options ) ;
13361348 string IPersistableModel < ChatMessage > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
13371349 BinaryData IPersistableModel < ChatMessage > . Write ( ModelReaderWriterOptions options ) ;
1338- protected abstract void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
1350+ protected internal abstract void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
13391351 }
13401352 public class ChatMessageContentPart : IJsonModel < ChatMessageContentPart > , IPersistableModel < ChatMessageContentPart > {
13411353 public BinaryData ImageBytes { get ; }
@@ -1403,6 +1415,7 @@ public abstract class ChatResponseFormat : IEquatable<ChatResponseFormat>, IJson
14031415 [ EditorBrowsable ( EditorBrowsableState . Never ) ]
14041416 bool IEquatable < ChatResponseFormat > . Equals ( ChatResponseFormat other ) ;
14051417 public override string ToString ( ) ;
1418+ protected internal abstract void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
14061419 }
14071420 public class ChatTokenLogProbabilityInfo : IJsonModel < ChatTokenLogProbabilityInfo > , IPersistableModel < ChatTokenLogProbabilityInfo > {
14081421 public float LogProbability { get ; }
@@ -1510,7 +1523,7 @@ public class FunctionChatMessage : ChatMessage, IJsonModel<FunctionChatMessage>,
15101523 FunctionChatMessage IPersistableModel < FunctionChatMessage > . Create ( BinaryData data , ModelReaderWriterOptions options ) ;
15111524 string IPersistableModel < FunctionChatMessage > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
15121525 BinaryData IPersistableModel < FunctionChatMessage > . Write ( ModelReaderWriterOptions options ) ;
1513- protected override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
1526+ protected internal override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
15141527 }
15151528 public readonly partial struct ImageChatMessageContentPartDetail : IEquatable < ImageChatMessageContentPartDetail > {
15161529 private readonly object _dummy ;
@@ -1589,7 +1602,7 @@ public class SystemChatMessage : ChatMessage, IJsonModel<SystemChatMessage>, IPe
15891602 SystemChatMessage IPersistableModel < SystemChatMessage > . Create ( BinaryData data , ModelReaderWriterOptions options ) ;
15901603 string IPersistableModel < SystemChatMessage > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
15911604 BinaryData IPersistableModel < SystemChatMessage > . Write ( ModelReaderWriterOptions options ) ;
1592- protected override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
1605+ protected internal override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
15931606 }
15941607 public class ToolChatMessage : ChatMessage , IJsonModel < ToolChatMessage > , IPersistableModel < ToolChatMessage > {
15951608 public ToolChatMessage ( string toolCallId , params ChatMessageContentPart [ ] contentParts ) ;
@@ -1601,7 +1614,7 @@ public class ToolChatMessage : ChatMessage, IJsonModel<ToolChatMessage>, IPersis
16011614 ToolChatMessage IPersistableModel < ToolChatMessage > . Create ( BinaryData data , ModelReaderWriterOptions options ) ;
16021615 string IPersistableModel < ToolChatMessage > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
16031616 BinaryData IPersistableModel < ToolChatMessage > . Write ( ModelReaderWriterOptions options ) ;
1604- protected override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
1617+ protected internal override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
16051618 }
16061619 public class UserChatMessage : ChatMessage , IJsonModel < UserChatMessage > , IPersistableModel < UserChatMessage > {
16071620 public UserChatMessage ( params ChatMessageContentPart [ ] content ) ;
@@ -1613,7 +1626,7 @@ public class UserChatMessage : ChatMessage, IJsonModel<UserChatMessage>, IPersis
16131626 UserChatMessage IPersistableModel < UserChatMessage > . Create ( BinaryData data , ModelReaderWriterOptions options ) ;
16141627 string IPersistableModel < UserChatMessage > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
16151628 BinaryData IPersistableModel < UserChatMessage > . Write ( ModelReaderWriterOptions options ) ;
1616- protected override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
1629+ protected internal override void WriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
16171630 }
16181631}
16191632namespace OpenAI . Embeddings {
0 commit comments