victor HF staff commited on
Commit
ec9f618
1 Parent(s): 9885691

Added type definitions for Message, Model, and Conversation.

Browse files
Files changed (1) hide show
  1. src/lib/types/index.d.ts +17 -0
src/lib/types/index.d.ts CHANGED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ type Message = {
2
+ role: string;
3
+ content: string;
4
+ };
5
+
6
+ type Model = {
7
+ model: string;
8
+ temperature: number;
9
+ maxTokens: number;
10
+ streaming: boolean;
11
+ jsonMode: boolean;
12
+ };
13
+
14
+ type Conversation = {
15
+ model: Model;
16
+ messages: Message[];
17
+ };