Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Added a new `id` and `name` property to the `Conversation` type, and added a new `ConversationList` type to hold a list of conversations and the active conversation ID.
Browse files- src/lib/types/index.d.ts +7 -0
src/lib/types/index.d.ts
CHANGED
|
@@ -12,6 +12,13 @@ type Model = {
|
|
| 12 |
};
|
| 13 |
|
| 14 |
type Conversation = {
|
|
|
|
|
|
|
| 15 |
model: Model;
|
| 16 |
messages: Message[];
|
| 17 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
};
|
| 13 |
|
| 14 |
type Conversation = {
|
| 15 |
+
id: string;
|
| 16 |
+
name: string;
|
| 17 |
model: Model;
|
| 18 |
messages: Message[];
|
| 19 |
};
|
| 20 |
+
|
| 21 |
+
type ConversationList = {
|
| 22 |
+
conversations: Conversation[];
|
| 23 |
+
activeConversationId: string | null;
|
| 24 |
+
};
|