Explorar o código

Merge pull request #1 from dtnewman/dn/downloadModelsV2

fix safari issue
Caden MacKenzie hai 9 meses
pai
achega
372d873fd0
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 1 1
      exo/tinychat/index.html
  2. 3 0
      exo/tinychat/index.js

+ 1 - 1
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="

+ 3 - 0
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) {