From e7522bba763f405fa651729e41c42bb4e70b2f07 Mon Sep 17 00:00:00 2001 From: dylan Date: Tue, 29 Oct 2024 19:38:46 +1300 Subject: [PATCH] Populate model list from models endpoint --- public/index.html | 66 ++++------------------------------------ public/scripts/openai.js | 17 +++++++++++ 2 files changed, 23 insertions(+), 60 deletions(-) diff --git a/public/index.html b/public/index.html index 6f0c67322..7b3673c0d 100644 --- a/public/index.html +++ b/public/index.html @@ -3094,66 +3094,12 @@
For privacy reasons, your API key will be hidden after you reload the page.
-

NanoGPT Model

- - +
+

NanoGPT Model

+ +

Perplexity API Key

diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 2b2306ec3..cd76fc117 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -1641,6 +1641,23 @@ function saveModelList(data) { } } } + + if (oai_settings.chat_completion_source == chat_completion_sources.NANOGPT) { + $('#model_nanogpt_select').empty(); + model_list.forEach((model) => { + $('#model_nanogpt_select').append( + $('