feat(auth): add DeepSeek API and fix

This commit is contained in:
Dadash Huseynzade 2026-01-26 21:21:48 +04:00
parent 301a9f5068
commit 37bee604b1
2 changed files with 32 additions and 31 deletions

View File

@ -186,7 +186,7 @@ describe("models-config", () => {
}); });
}); });
it("adds deepseek provider when DEEPSEEK_API_KEY is set", async () => { it("adds deepseek provider when DEEPSEEK_API_KEY is set", async () => {
await withTempHome(async () => { await withTempHome(async () => {
vi.resetModules(); vi.resetModules();
const prevKey = process.env.DEEPSEEK_API_KEY; const prevKey = process.env.DEEPSEEK_API_KEY;
@ -219,4 +219,4 @@ it("adds deepseek provider when DEEPSEEK_API_KEY is set", async () => {
else process.env.DEEPSEEK_API_KEY = prevKey; else process.env.DEEPSEEK_API_KEY = prevKey;
} }
}); });
}); });

View File

@ -245,6 +245,7 @@ export function buildAuthChoiceOptions(params: {
label: "MiniMax M2.1 Lightning", label: "MiniMax M2.1 Lightning",
hint: "Faster, higher output cost", hint: "Faster, higher output cost",
}); });
options.push({ value: "deepseek-api-key", label: "DeepSeek API key" });
if (params.includeSkip) { if (params.includeSkip) {
options.push({ value: "skip", label: "Skip for now" }); options.push({ value: "skip", label: "Skip for now" });
} }