-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathResponse.cs
42 lines (35 loc) · 1011 Bytes
/
Response.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Numerics;
namespace ChatGPT
{
public class Response
{
public string? id { get; set; }
public string? @object { get; set; }
public int created { get; set; }
public string? model { get; set; }
public List<Choice>? choices { get; set; }
public Usage? usage { get; set; }
public Error? error { get; set; }
}
public class Choice
{
public string? text { get; set; }
public int index { get; set; }
public object? logprobs { get; set; }
public string? finish_reason { get; set; }
}
public class Usage
{
public int prompt_tokens { get; set; }
public int completion_tokens { get; set; }
public int total_tokens { get; set; }
}
public class Error
{
public string? message { get; set; }
public string? type { get; set; }
public string? param { get; set; }
public string? code { get; set; }
}
}