diff --git a/templates/auto-profiles.html b/templates/auto-profiles.html
index 5ebeb43..2ea6254 100644
--- a/templates/auto-profiles.html
+++ b/templates/auto-profiles.html
@@ -142,8 +142,8 @@
// 加载数据
async function loadData() {
const [providersRes, profilesRes] = await Promise.all([
- fetch('/api/providers'),
- fetch('/api/auto-profiles')
+ fetch('/api/admin/providers'),
+ fetch('/api/admin/auto-profiles')
]);
providers = await providersRes.json();
diff --git a/templates/chat.html b/templates/chat.html
index f49f4c3..bb1a843 100644
--- a/templates/chat.html
+++ b/templates/chat.html
@@ -142,7 +142,7 @@
// 加载模型列表
async function loadModels() {
- const res = await fetch('/api/chat/models');
+ const res = await fetch('/api/admin/chat/models');
models = await res.json();
}
@@ -156,7 +156,7 @@
// 加载对话列表
async function loadChats() {
- const res = await fetch('/api/chat/list');
+ const res = await fetch('/api/admin/chat/list');
chats = await res.json();
renderChatList();
}
@@ -292,7 +292,7 @@
scrollToBottom();
try {
- const res = await fetch('/api/chat/send', {
+ const res = await fetch('/api/admin/chat/send', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
diff --git a/templates/config.html b/templates/config.html
index 0674677..b955888 100644
--- a/templates/config.html
+++ b/templates/config.html
@@ -57,7 +57,7 @@