feat(auth): add DeepSeek API and fix
This commit is contained in:
parent
301a9f5068
commit
37bee604b1
@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -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" });
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user