From 86bac00a812fb3e2b822f74dfc39e20ddd61da49 Mon Sep 17 00:00:00 2001
From: Cohee <18619528+Cohee1207@users.noreply.github.com>
Date: Wed, 9 Jul 2025 20:25:20 +0300
Subject: [PATCH] Groq: Pull models list from endpoint
---
public/index.html | 40 ++++++----------------
public/scripts/openai.js | 33 +++++++++++++++++-
src/endpoints/backends/chat-completions.js | 4 +++
3 files changed, 47 insertions(+), 30 deletions(-)
diff --git a/public/index.html b/public/index.html
index d80514f0a..3105bc8a5 100644
--- a/public/index.html
+++ b/public/index.html
@@ -3468,35 +3468,17 @@
Groq Model
diff --git a/public/scripts/openai.js b/public/scripts/openai.js
index 2818e2a7f..13a467983 100644
--- a/public/scripts/openai.js
+++ b/public/scripts/openai.js
@@ -1978,6 +1978,24 @@ function saveModelList(data) {
$('#model_google_select').val(oai_settings.google_model).trigger('change');
}
+
+ if (oai_settings.chat_completion_source === chat_completion_sources.GROQ) {
+ $('#model_groq_select').empty();
+ model_list.forEach((model) => {
+ $('#model_groq_select').append(
+ $('