Skip to content

Commit 1a9517f

Browse files
committed
fix: response type and format classes
1 parent 92eb906 commit 1a9517f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Runtime/DataTypes.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)