Show default deepseek models on wrong API key

connect #3390
This commit is contained in:
timothycarambat 2025-03-04 09:07:49 -08:00
parent fab74037fa
commit b4afb995d4

View File

@ -496,7 +496,18 @@ async function getDeepSeekModels(apiKey = null) {
)
.catch((e) => {
console.error(`DeepSeek:listModels`, e.message);
return [];
return [
{
id: "deepseek-chat",
name: "deepseek-chat",
organization: "deepseek",
},
{
id: "deepseek-reasoner",
name: "deepseek-reasoner",
organization: "deepseek",
},
];
});
if (models.length > 0 && !!apiKey) process.env.DEEPSEEK_API_KEY = apiKey;