refac
This commit is contained in:
1 parent
4777f4fa32
commit
a06685a47b
8 files changed
+86
-36
No files matched your search
@@ -454,7 +454,8 @@ export const executeToolServer = async (
|
||||
url: string,
|
||||
name: string,
|
||||
params: Record<string, any>,
|
||||
serverData: { openapi: any; info: any; specs: any }
|
||||
serverData: { openapi: any; info: any; specs: any },
|
||||
sessionId?: string
|
||||
) => {
|
||||
let error = null;
|
||||
|
||||
@@ -531,6 +532,7 @@ export const executeToolServer = async (
|
||||
'Content-Type': 'application/json',
|
||||
...(token && { authorization: `Bearer ${token}` })
|
||||
};
|
||||
if (sessionId) headers['X-Session-Id'] = sessionId;
|
||||
|
||||
const requestOptions: RequestInit = {
|
||||
method: httpMethod.toUpperCase(),
|
||||
|
||||
Reference in new issue
Block a user