瀏覽代碼

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