File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,6 +97,12 @@ public sealed class CreateChatCompletionRequest
9797 public Dictionary < string , string > LogitBias { get ; set ; }
9898 public string User { get ; set ; }
9999 public string SystemFingerprint { get ; set ; }
100+ public ResponseFormat ResponseFormat { get ; set ; }
101+ }
102+
103+ public class ResponseFormat
104+ {
105+ public string Type { get ; set ; } = ResponseType . Text ;
100106 }
101107
102108 public struct CreateChatCompletionResponse : IResponse
@@ -351,6 +357,12 @@ public static class ContentType
351357 public const string MultipartFormData = "multipart/form-data" ;
352358 public const string ApplicationJson = "application/json" ;
353359 }
360+
361+ public static class ResponseType
362+ {
363+ public const string Text = "text" ;
364+ public const string JsonObject = "json_object" ;
365+ }
354366
355367 public static class ImageSize
356368 {
You can’t perform that action at this time.
0 commit comments