Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🔨 chore: fix types (#9003)

Arvin Xud7294ddebc6c
diff --git a/packages/model-runtime/src/utils/modelParse.ts b/packages/model-runtime/src/utils/modelParse.ts
index 77d6edd1cb6..0f49d5f7fc7 100644
--- a/packages/model-runtime/src/utils/modelParse.ts
+++ b/packages/model-runtime/src/utils/modelParse.ts
@@ -1,4 +1,5 @@
import type { ChatModelCard } from '@lobechat/types';
+import { AIBaseModelCard } from 'model-bank';
import type { ModelProviderKey } from '../types';
@@ -180,7 +181,7 @@ const findKnownModelByProvider = async (
return null;
}
- const providerModels = modules[provider as keyof typeof modules];
+ const providerModels = modules[provider as keyof typeof modules] as AIBaseModelCard[];
// 如果导入成功且有数据,进行查找
if (Array.isArray(providerModels)) {