File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export interface ChatCompletionChunk {
41
41
object : "chat.completion.chunk"
42
42
created : number
43
43
model : string
44
- choices : [ Choice ]
44
+ choices : Array < Choice >
45
45
system_fingerprint ?: string
46
46
}
47
47
@@ -73,7 +73,7 @@ export interface ChatCompletionResponse {
73
73
object : "chat.completion"
74
74
created : number
75
75
model : string
76
- choices : [ ChoiceNonStreaming ]
76
+ choices : Array < ChoiceNonStreaming >
77
77
system_fingerprint ?: string
78
78
usage ?: {
79
79
prompt_tokens : number
@@ -82,9 +82,15 @@ export interface ChatCompletionResponse {
82
82
}
83
83
}
84
84
85
+ interface ResponseMessage {
86
+ role : "assistant"
87
+ content : string | null
88
+ tool_calls ?: Array < ToolCall >
89
+ }
90
+
85
91
interface ChoiceNonStreaming {
86
92
index : number
87
- message : Message
93
+ message : ResponseMessage
88
94
logprobs : object | null
89
95
finish_reason : "stop" | "length" | "tool_calls" | "content_filter"
90
96
}
@@ -127,7 +133,7 @@ export interface Tool {
127
133
}
128
134
129
135
export interface Message {
130
- role : "user" | "assistant" | "system" | "tool"
136
+ role : "user" | "assistant" | "system" | "tool" | "developer"
131
137
content : string | Array < ContentPart > | null
132
138
133
139
name ?: string
You can’t perform that action at this time.
0 commit comments