summaryrefslogtreecommitdiff
path: root/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts
diff options
context:
space:
mode:
authorNate Sesti <33237525+sestinj@users.noreply.github.com>2023-08-22 13:12:58 -0700
committerGitHub <noreply@github.com>2023-08-22 13:12:58 -0700
commit5eec484dc79bb56dabf9a56af0dbe6bc95227d39 (patch)
tree07edc01475cfe0ba69372f537d36aa3294680b7d /extension/react-app/src/hooks/ContinueGUIClientProtocol.ts
parentb6435e1e479edb1e4f049098dc8522e944317f2a (diff)
downloadsncontinue-5eec484dc79bb56dabf9a56af0dbe6bc95227d39.tar.gz
sncontinue-5eec484dc79bb56dabf9a56af0dbe6bc95227d39.tar.bz2
sncontinue-5eec484dc79bb56dabf9a56af0dbe6bc95227d39.zip
Config UI (#399)
* feat: :sparkles: UI for config! * feat: :sparkles: (latent) edit models in settings
Diffstat (limited to 'extension/react-app/src/hooks/ContinueGUIClientProtocol.ts')
-rw-r--r--extension/react-app/src/hooks/ContinueGUIClientProtocol.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts
index b3ac2570..ce9b2a0a 100644
--- a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts
+++ b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts
@@ -133,6 +133,18 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol {
});
}
+ setSystemMessage(message: string): void {
+ this.messenger?.send("set_system_message", { message });
+ }
+
+ setTemperature(temperature: number): void {
+ this.messenger?.send("set_temperature", { temperature });
+ }
+
+ setModelForRole(role: string, model_class: string, model: any): void {
+ this.messenger?.send("set_model_for_role", { role, model, model_class });
+ }
+
saveContextGroup(title: string, contextItems: ContextItem[]): void {
this.messenger?.send("save_context_group", {
context_items: contextItems,