From 25cf74eec1acce9ab14eebbf036280da3c868b5a Mon Sep 17 00:00:00 2001 From: wangyuzhan Date: Thu, 20 Nov 2025 15:54:08 +0800 Subject: [PATCH] update sdk --- trainer_web/static/js/services/apiClient.js | 3 -- trainer_web/templates/index.html | 41 --------------------- 2 files changed, 44 deletions(-) diff --git a/trainer_web/static/js/services/apiClient.js b/trainer_web/static/js/services/apiClient.js index c269d60..0da4516 100644 --- a/trainer_web/static/js/services/apiClient.js +++ b/trainer_web/static/js/services/apiClient.js @@ -1,10 +1,8 @@ -import { getApiKey } from './authClient.js'; const defaultTimeout = 10000; export function fetchWithTimeoutAndRetry(url, options = {}, timeout = defaultTimeout, retries = 3) { const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), timeout); - const apiKey = getApiKey(); const fetchOptions = { ...options, headers: { @@ -12,7 +10,6 @@ export function fetchWithTimeoutAndRetry(url, options = {}, timeout = defaultTim 'Cache-Control': 'no-cache, no-store, must-revalidate', Pragma: 'no-cache', Expires: '0', - ...(apiKey ? { Authorization: `Bearer ${apiKey}` } : {}), }, signal: controller.signal, }; diff --git a/trainer_web/templates/index.html b/trainer_web/templates/index.html index 788819b..d6eb535 100644 --- a/trainer_web/templates/index.html +++ b/trainer_web/templates/index.html @@ -11,26 +11,6 @@

MiniMind Training Lab

-
-
-
-

注册客户端

-
-
- - -
-
- - -
-
-
- -
-
-
-
@@ -291,26 +271,5 @@
-