فهرست منبع

fix: tool info (#14293)

zxhlyh 1 ماه پیش
والد
کامیت
545aa61cf4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      web/app/components/plugins/plugin-detail-panel/model-list.tsx

+ 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