fix: tool name in agent (#15344)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user