From cc17079988e2e6eaac62b678f27b73d850f3ef55 Mon Sep 17 00:00:00 2001 From: southseact-3d Date: Wed, 18 Feb 2026 14:38:19 +0000 Subject: [PATCH] Fix model sections: separate Provider Models and Public-Facing Models - Provider Models section: restored OpenCode integration with dropdown - Public-Facing Models section: completely separate manual entry - Provider Chain section: fallback chain with up/down buttons (unchanged) - Added separate arrays: providerModels and publicModels - Added reorder support for both provider and public models - Updated server to handle providerModel type and reorder by type --- chat/public/admin.html | 84 ++++++-- chat/public/admin.js | 443 +++++++++++++++++++++++++++++++++++++---- chat/server.js | 150 +++++++++++--- 3 files changed, 596 insertions(+), 81 deletions(-) diff --git a/chat/public/admin.html b/chat/public/admin.html index 26506fb..e30a843 100644 --- a/chat/public/admin.html +++ b/chat/public/admin.html @@ -68,25 +68,25 @@
- +
-

Add Public-Facing Model

-
Public
+

Add Provider Model

+
OpenCode
-

These models are displayed to users in the builder dropdown. They all share the same unified provider fallback chain.

-
+

Add models from OpenCode that will be available to users. These models use the unified provider chain for fallback.

+
- + +
-
+
- +
-

Provider Model Chain

-
Backend
+

Add to Provider Chain

+
Fallback
-

This is the unified fallback chain used for ALL models. When rate limits are reached or errors occur, the system automatically falls back to the next provider in this chain.

+

Add providers to the unified fallback chain. When rate limits are reached or errors occur, the system automatically falls back to the next provider in this chain.

+ +
+
+

Public-Facing Models

+
Public
+
+

These models are displayed to users in the builder dropdown. They are separate from the provider models and can be used to create curated model lists for users.

+ +
+ + +
+ + + +
+ +
+
+ + +
+

Public Models List

+
0
+
+
+
+