diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-22 13:07:03 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-22 13:07:03 -0700 |
commit | 241c023c37fa47785c8d63d3bd6f77cb30fa2d7a (patch) | |
tree | b1a4ac2862c8dc5d805a948a6a0a1249aef9bc34 /extension/react-app/src/hooks | |
parent | f8bc06261464cd46c31a23cc8cbc0e76fb642d18 (diff) | |
parent | 4a77e7251c36dfcce15d68471dd8865c698ad679 (diff) | |
download | sncontinue-241c023c37fa47785c8d63d3bd6f77cb30fa2d7a.tar.gz sncontinue-241c023c37fa47785c8d63d3bd6f77cb30fa2d7a.tar.bz2 sncontinue-241c023c37fa47785c8d63d3bd6f77cb30fa2d7a.zip |
Merge branch 'main' of https://github.com/continuedev/continue
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..6d9d1fdd 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(): 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..4eb68046 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() { + this.messenger.send("change_default_model", {}); + } + sendClear() { this.messenger.send("clear_history", {}); } |