refactor: type improvements that doesn't modify functionality (#17970)
This commit is contained in:
parent
53efb2bad5
commit
4c99e9dc73
39 changed files with 69 additions and 63 deletions
|
|
@ -20,8 +20,8 @@ export const getToolCheckParams = (
|
|||
const currCollection = currentTools.find(item => canFindTool(item.id, provider_id))
|
||||
const currTool = currCollection?.tools.find(tool => tool.name === tool_name)
|
||||
const formSchemas = currTool ? toolParametersToFormSchemas(currTool.parameters) : []
|
||||
const toolInputVarSchema = formSchemas.filter((item: any) => item.form === 'llm')
|
||||
const toolSettingSchema = formSchemas.filter((item: any) => item.form !== 'llm')
|
||||
const toolInputVarSchema = formSchemas.filter(item => item.form === 'llm')
|
||||
const toolSettingSchema = formSchemas.filter(item => item.form !== 'llm')
|
||||
|
||||
return {
|
||||
toolInputsSchema: (() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue