ソースを参照

fix: gemini model info (#14282)

zxhlyh 2 ヶ月 前
コミット
28add22f20
共有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,
   detail,
 }: Props) => {
 }: Props) => {
   const { t } = useTranslation()
   const { t } = useTranslation()
-  const { data: res } = useModelProviderModelList(`${detail.plugin_id}/${detail.name}`)
+  const { data: res } = useModelProviderModelList(`${detail.plugin_id}/${detail.name === 'gemini' ? 'google' : detail.name}`)
 
 
   if (!res)
   if (!res)
     return null
     return null