Skip to content

Commit

Permalink
feat: datatypes are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
srcnalt committed Dec 14, 2023
1 parent 1928201 commit af4290d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Runtime/DataTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public struct Usage

public class OpenAIFile
{
public string Prompt { get; set; }
public object Completion { get; set; }
public string Id { get; set; }
public string Object { get; set; }
public long Bytes { get; set; }
Expand Down Expand Up @@ -94,6 +96,7 @@ public sealed class CreateChatCompletionRequest
public float? FrequencyPenalty { get; set; } = 0;
public Dictionary<string, string> LogitBias { get; set; }
public string User { get; set; }
public string SystemFingerprint { get; set; }
}

public struct CreateChatCompletionResponse : IResponse
Expand All @@ -106,6 +109,7 @@ public struct CreateChatCompletionResponse : IResponse
public long Created { get; set; }
public List<ChatChoice> Choices { get; set; }
public Usage Usage { get; set; }
public string SystemFingerprint { get; set; }
}

public struct ChatChoice
Expand Down Expand Up @@ -287,6 +291,7 @@ public struct ListFilesResponse: IResponse
public string Warning { get; set; }
public string Object { get; set; }
public List<OpenAIFile> Data { get; set; }
public bool HasMore { get; set; }
}

public struct DeleteResponse: IResponse
Expand Down Expand Up @@ -328,6 +333,7 @@ public struct ListFineTunesResponse: IResponse
public string Warning { get; set; }
public string Object { get; set; }
public List<FineTune> Data { get; set; }
public object NextStartingAfter { get; set; }
}

public struct ListFineTuneEventsResponse: IResponse
Expand Down

0 comments on commit af4290d

Please sign in to comment.