File size: 400 Bytes
bd8c7a0
 
 
 
 
 
 
 
 
 
62db40f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
export type Message =
| {
	from: 'user';
	content: string;
}
| {
	from: 'bot';
	content: string;
};


export interface Token {
	id:      number;
	text:    string;
	logprob: number;
	special: boolean;
}


export interface StreamResponse {
	/**
	 * Generated token
	 */
	token: Token;
	/**
	 * Complete generated text
	 * Only available when the generation is finished
	 */
	generated_text?: string;
}