summaryrefslogtreecommitdiffstats
path: root/assets/playground.html
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-21 19:45:55 +0800
committerGitHub <noreply@github.com>2024-06-21 19:45:55 +0800
commit054e998ff49a1f3abbc0a474d9a8d23c0ed4b17b (patch)
treef1134647bea4b524babfa1508f8e0ce74c6ad3ca /assets/playground.html
parent97c82e565fc1d2e2b6a95b60beacbbe3c4708a39 (diff)
downloadaichat-054e998ff49a1f3abbc0a474d9a8d23c0ed4b17b.tar.gz
feat: serve embeddings api (#624)
Diffstat (limited to 'assets/playground.html')
-rw-r--r--assets/playground.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/playground.html b/assets/playground.html
index 4487b44..6ef1f1a 100644
--- a/assets/playground.html
+++ b/assets/playground.html
@@ -741,7 +741,7 @@
async init() {
await Promise.all([
fetchJSON(MODELS_API).then(models => {
- this.models = models;
+ this.models = models.filter(v => !v.mode || v.mode === "chat");
}).catch(err => {
toast("No model available");
console.error("Failed to load models", err);