Feat/model as tool (#2744)
This commit is contained in:
parent
3231a8c51c
commit
40c646cf7a
26 changed files with 840 additions and 43 deletions
|
|
@ -12,6 +12,11 @@ export const fetchBuiltInToolList = (collectionName: string) => {
|
|||
export const fetchCustomToolList = (collectionName: string) => {
|
||||
return get<Tool[]>(`/workspaces/current/tool-provider/api/tools?provider=${collectionName}`)
|
||||
}
|
||||
|
||||
export const fetchModelToolList = (collectionName: string) => {
|
||||
return get<Tool[]>(`/workspaces/current/tool-provider/model/tools?provider=${collectionName}`)
|
||||
}
|
||||
|
||||
export const fetchBuiltInToolCredentialSchema = (collectionName: string) => {
|
||||
return get<ToolCredential[]>(`/workspaces/current/tool-provider/builtin/${collectionName}/credentials_schema`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue