From d1b59367bdd6332353733d0e90ba7f5bceb6ca50 Mon Sep 17 00:00:00 2001 From: xssdoctor Date: Sun, 31 Mar 2024 20:53:09 -0400 Subject: [PATCH] updated gui to include local models and claud...more to comee --- installer/client/gui/claude.mjs | 5 + installer/client/gui/index.html | 7 + installer/client/gui/main.js | 376 ++++++++++++++++-------- installer/client/gui/package-lock.json | 65 ++-- installer/client/gui/package.json | 4 +- installer/client/gui/static/js/index.js | 110 +++---- installer/client/gui/utils.js | 0 7 files changed, 363 insertions(+), 204 deletions(-) create mode 100644 installer/client/gui/claude.mjs create mode 100644 installer/client/gui/utils.js diff --git a/installer/client/gui/claude.mjs b/installer/client/gui/claude.mjs new file mode 100644 index 0000000..eeccfd0 --- /dev/null +++ b/installer/client/gui/claude.mjs @@ -0,0 +1,5 @@ +import Claude from "claude-ai"; + +export function MakeClaude(apiKey) { + return new Claude({ sessionKey: apiKey }); +} diff --git a/installer/client/gui/index.html b/installer/client/gui/index.html index 2a18b30..a178e56 100644 --- a/installer/client/gui/index.html +++ b/installer/client/gui/index.html @@ -44,6 +44,7 @@
+