We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adc2a00 commit aa92d89Copy full SHA for aa92d89
2 files changed
src/typings/ChatCompletionResp.ts
@@ -0,0 +1,18 @@
1
+export type Delta = {
2
+ role: string;
3
+ content: string;
4
+};
5
+
6
+export type Choice = {
7
+ index: number;
8
+ delta: Delta;
9
+ finishReason: string | null;
10
11
12
+export type ChatCompletionResp = {
13
+ id: string;
14
+ object: string;
15
+ created: number;
16
+ model: string;
17
+ choices: Array<Choice>;
18
src/typings/index.ts
@@ -5,3 +5,4 @@ export * from "./IConversation";
export * from "./MsgVectorPayload";
export * from "./VectorPoint";
export * from "./VectorSearchParams";
+export * from "./ChatCompletionResp";
0 commit comments