← back to Exo
update js
8b23f124c9551af1804a60d9b89f0f2cb7a1ad7e · 2024-10-30 17:31:32 -0400 · thenatlog
Files touched
M exo/tinychat/index.htmlM exo/tinychat/index.js
Diff
commit 8b23f124c9551af1804a60d9b89f0f2cb7a1ad7e
Author: thenatlog <logan.w.omalley@gmail.com>
Date: Wed Oct 30 17:31:32 2024 -0400
update js
---
exo/tinychat/index.html | 2 +-
exo/tinychat/index.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/exo/tinychat/index.html b/exo/tinychat/index.html
index 2e7a5fda..1f698f3c 100644
--- a/exo/tinychat/index.html
+++ b/exo/tinychat/index.html
@@ -29,7 +29,7 @@
<div x-show="errorMessage" x-transition.opacity x-text="errorMessage" class="toast">
</div>
<div class="model-selector">
-<select>
+<select @change="if (cstate) cstate.selectedModel = $event.target.value" x-model="cstate.selectedModel">
<option value="llama-3.2-1b">Llama 3.2 1B</option>
<option value="llama-3.2-3b">Llama 3.2 3B</option>
<option value="llama-3.1-8b">Llama 3.1 8B</option>
diff --git a/exo/tinychat/index.js b/exo/tinychat/index.js
index 51dc9934..01b082c1 100644
--- a/exo/tinychat/index.js
+++ b/exo/tinychat/index.js
@@ -4,8 +4,8 @@ document.addEventListener("alpine:init", () => {
cstate: {
time: null,
messages: [],
- selectedModel: 'llama-3.1-8b',
- },
+ selectedModel: 'llama-3.2-1b',
+ },
// historical state
histories: JSON.parse(localStorage.getItem("histories")) || [],
← ac49b2a2 revert main.py
·
back to Exo
·
add a default_model in ChatGPTAPI f5237134 →