chore: format
This commit is contained in:
1 parent
05252e19b5
commit
350d52f515
73 files changed
+766
-55
No files matched your search
@@ -410,8 +410,8 @@ export const getToolServersData = async (servers: object[]) => {
|
||||
try {
|
||||
const baseUrl = (server?.url ?? '').replace(/\/$/, '');
|
||||
const configRes = await fetch(`${baseUrl}/api/config`, {
|
||||
signal: AbortSignal.timeout(TOOL_SERVER_FETCH_TIMEOUT)
|
||||
});
|
||||
signal: AbortSignal.timeout(TOOL_SERVER_FETCH_TIMEOUT)
|
||||
});
|
||||
if (configRes.ok) {
|
||||
const config = await configRes.json();
|
||||
if (config?.features?.system) {
|
||||
@@ -420,9 +420,9 @@ export const getToolServersData = async (servers: object[]) => {
|
||||
headers['Authorization'] = `Bearer ${toolServerToken}`;
|
||||
}
|
||||
const systemRes = await fetch(`${baseUrl}/system`, {
|
||||
signal: AbortSignal.timeout(TOOL_SERVER_FETCH_TIMEOUT),
|
||||
headers
|
||||
});
|
||||
signal: AbortSignal.timeout(TOOL_SERVER_FETCH_TIMEOUT),
|
||||
headers
|
||||
});
|
||||
if (systemRes.ok) {
|
||||
const systemData = await systemRes.json();
|
||||
if (systemData?.prompt) {
|
||||
|
||||
Reference in new issue
Block a user