From 054e998ff49a1f3abbc0a474d9a8d23c0ed4b17b Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 21 Jun 2024 19:45:55 +0800 Subject: feat: serve embeddings api (#624) --- assets/arena.html | 2 +- assets/playground.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'assets') diff --git a/assets/arena.html b/assets/arena.html index b43c464..9808084 100644 --- a/assets/arena.html +++ b/assets/arena.html @@ -565,7 +565,7 @@ async init() { try { const models = await fetchJSON(MODELS_API); - this.models = models; + this.models = models.filter(v => !v.mode || v.mode === "chat"); } catch (err) { toast("No available model"); console.error("Failed to load models", err); 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); -- cgit v1.2.3