diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-27 11:17:26 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-27 11:17:26 -0700 |
commit | 57d49955973c94da59b83075a212be4cad7078eb (patch) | |
tree | e95b0ead1d565f38242af57399d20ba5ed56e905 /extension/react-app/src/hooks | |
parent | d45ce41f6476a96cd0e4d375f7cd00393865d9cf (diff) | |
parent | d2842f655c4d02952d8cf58ec3a2c927704cabae (diff) | |
download | sncontinue-57d49955973c94da59b83075a212be4cad7078eb.tar.gz sncontinue-57d49955973c94da59b83075a212be4cad7078eb.tar.bz2 sncontinue-57d49955973c94da59b83075a212be4cad7078eb.zip |
Merge branch 'main' into newer-simpler-stream-algo
Diffstat (limited to 'extension/react-app/src/hooks')
-rw-r--r-- | extension/react-app/src/hooks/ContinueGUIClientProtocol.ts | 2 | ||||
-rw-r--r-- | extension/react-app/src/hooks/useContinueGUIProtocol.ts | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts index 824bb086..3d8e0a38 100644 --- a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts +++ b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts @@ -13,6 +13,8 @@ abstract class AbstractContinueGUIClientProtocol { callback: (commands: { name: string; description: string }[]) => void ): void; + abstract changeDefaultModel(model: string): void; + abstract sendClear(): void; abstract retryAtIndex(index: number): void; diff --git a/extension/react-app/src/hooks/useContinueGUIProtocol.ts b/extension/react-app/src/hooks/useContinueGUIProtocol.ts index 59397742..f43a66ff 100644 --- a/extension/react-app/src/hooks/useContinueGUIProtocol.ts +++ b/extension/react-app/src/hooks/useContinueGUIProtocol.ts @@ -55,6 +55,10 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { }); } + changeDefaultModel(model: string) { + this.messenger.send("change_default_model", { model }); + } + sendClear() { this.messenger.send("clear_history", {}); } |