Ver código fonte

fix: tool info (#14293)

zxhlyh 1 mês atrás
pai
commit
545aa61cf4

+ 1 - 1
web/app/components/plugins/plugin-detail-panel/model-list.tsx

@@ -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