mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-22 11:55:07 +00:00
add manual create http toolset (#5743)
* add manual create http toolset * optimize code * optimize * fix * fix
This commit is contained in:
@@ -13,9 +13,9 @@ import { i18nT } from '../../../../web/i18n/utils';
|
||||
export const getHTTPToolSetRuntimeNode = ({
|
||||
name,
|
||||
avatar,
|
||||
baseUrl = '',
|
||||
customHeaders = '',
|
||||
apiSchemaStr = '',
|
||||
baseUrl,
|
||||
customHeaders,
|
||||
apiSchemaStr,
|
||||
toolList = [],
|
||||
headerSecret
|
||||
}: {
|
||||
@@ -34,12 +34,11 @@ export const getHTTPToolSetRuntimeNode = ({
|
||||
intro: 'HTTP Tools',
|
||||
toolConfig: {
|
||||
httpToolSet: {
|
||||
baseUrl,
|
||||
toolList,
|
||||
headerSecret,
|
||||
customHeaders,
|
||||
apiSchemaStr,
|
||||
toolId: ''
|
||||
...(baseUrl !== undefined && { baseUrl }),
|
||||
...(apiSchemaStr !== undefined && { apiSchemaStr }),
|
||||
...(customHeaders !== undefined && { customHeaders }),
|
||||
...(headerSecret !== undefined && { headerSecret })
|
||||
}
|
||||
},
|
||||
inputs: [],
|
||||
|
Reference in New Issue
Block a user