fix: tool name in agent (#15344)
This commit is contained in:
parent
20cbebeef1
commit
a3d18d43ed
2 changed files with 8 additions and 4 deletions
|
|
@ -69,10 +69,13 @@ export const correctModelProvider = (provider: string) => {
|
|||
return `langgenius/${provider}/${provider}`
|
||||
}
|
||||
|
||||
export const correctToolProvider = (provider: string) => {
|
||||
export const correctToolProvider = (provider: string, toolInCollectionList?: boolean) => {
|
||||
if (!provider)
|
||||
return ''
|
||||
|
||||
if (toolInCollectionList)
|
||||
return provider
|
||||
|
||||
if (provider.includes('/'))
|
||||
return provider
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue