fix: tool info (#14293)

This commit is contained in:
zxhlyh 2025-02-25 12:56:27 +08:00 committed by GitHub
parent 9fb78ce827
commit 545aa61cf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,7 @@ const ModelList = ({
detail,
}: Props) => {
const { t } = useTranslation()
const { data: res } = useModelProviderModelList(`${detail.plugin_id}/${detail.name === 'gemini' ? 'google' : detail.name}`)
const { data: res } = useModelProviderModelList(`${detail.plugin_id}/${detail.declaration.model.provider}`)
if (!res)
return null