add clearChat in st-context
| @@ -46,6 +46,7 @@ import { | |||
| 46 | updateChatMetadata, | 46 | updateChatMetadata, |
| 47 | updateMessageBlock, | 47 | updateMessageBlock, |
| 48 | printMessages, | 48 | printMessages, |
| 49 | clearChat, | ||
| 49 | } from '../script.js'; | 50 | } from '../script.js'; |
| 50 | import { | 51 | import { |
| 51 | extension_settings, | 52 | extension_settings, |
| @@ -205,6 +206,7 @@ export function getContext() { | |||
| 205 | getPresetManager, | 206 | getPresetManager, |
| 206 | getChatCompletionModel, | 207 | getChatCompletionModel, |
| 207 | printMessages, | 208 | printMessages, |
| 209 | clearChat, | ||
| 208 | }; | 210 | }; |
| 209 | } | 211 | } |
| 210 | 212 | ||