[object Object]

← back to Exo

fix safari issue

cbeb1b33c237fe598f53cac8f737d05e91fef922 · 2024-11-13 21:19:32 -0500 · Daniel Newman

Files touched

Diff

commit cbeb1b33c237fe598f53cac8f737d05e91fef922
Author: Daniel Newman <me@dtnewman.com>
Date:   Wed Nov 13 21:19:32 2024 -0500

    fix safari issue
---
 exo/tinychat/index.html | 2 +-
 exo/tinychat/index.js   | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/exo/tinychat/index.html b/exo/tinychat/index.html
index e53120e1..c4f97c51 100644
--- a/exo/tinychat/index.html
+++ b/exo/tinychat/index.html
@@ -45,7 +45,7 @@
         </div>
     </div>
 <div class="model-selector">
-  <select @change="if (cstate) cstate.selectedModel = $event.target.value" x-model="cstate.selectedModel" x-init="await populateSelector()" class='model-select'>
+  <select @change="if (cstate) cstate.selectedModel = $event.target.value" x-model="cstate.selectedModel" class='model-select'>
   </select>
 </div>
 <div @popstate.window="
diff --git a/exo/tinychat/index.js b/exo/tinychat/index.js
index adaaa84d..597e673d 100644
--- a/exo/tinychat/index.js
+++ b/exo/tinychat/index.js
@@ -40,6 +40,9 @@ document.addEventListener("alpine:init", () => {
 
       // Start polling for download progress
       this.startDownloadProgressPolling();
+      
+      // Call populateSelector immediately after initialization
+      this.populateSelector();
     },
 
     removeHistory(cstate) {

← 3eb726ce removing sorting of models by name  ·  back to Exo  ·  healthcheck fd867256 →