mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 21:47:00 -04:00
refac/fix: support delete method for openapi tool servers
This commit is contained in:
@@ -494,7 +494,10 @@ export const executeToolServer = async (
|
||||
headers
|
||||
};
|
||||
|
||||
if (['post', 'put', 'patch'].includes(httpMethod.toLowerCase()) && operation.requestBody) {
|
||||
if (
|
||||
['post', 'put', 'patch', 'delete'].includes(httpMethod.toLowerCase()) &&
|
||||
operation.requestBody
|
||||
) {
|
||||
requestOptions.body = JSON.stringify(bodyParams);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user