mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 09:30:21 +00:00
feat: adding support for Together ai provider (#10304)
This commit is contained in:
@@ -22,7 +22,9 @@ const runtime = {
|
||||
}),
|
||||
};
|
||||
|
||||
vi.mock("./plugin-registry.js", () => ({ ensurePluginRegistryLoaded: () => undefined }));
|
||||
vi.mock("./plugin-registry.js", () => ({
|
||||
ensurePluginRegistryLoaded: () => undefined,
|
||||
}));
|
||||
|
||||
vi.mock("../commands/message.js", () => ({ messageCommand }));
|
||||
vi.mock("../commands/status.js", () => ({ statusCommand }));
|
||||
@@ -42,7 +44,9 @@ vi.mock("../commands/configure.js", () => ({
|
||||
}));
|
||||
vi.mock("../commands/setup.js", () => ({ setupCommand }));
|
||||
vi.mock("../commands/onboard.js", () => ({ onboardCommand }));
|
||||
vi.mock("../commands/doctor-config-flow.js", () => ({ loadAndMaybeMigrateDoctorConfig }));
|
||||
vi.mock("../commands/doctor-config-flow.js", () => ({
|
||||
loadAndMaybeMigrateDoctorConfig,
|
||||
}));
|
||||
vi.mock("../runtime.js", () => ({ defaultRuntime: runtime }));
|
||||
vi.mock("./channel-auth.js", () => ({ runChannelLogin, runChannelLogout }));
|
||||
vi.mock("../tui/tui.js", () => ({ runTui }));
|
||||
@@ -174,6 +178,12 @@ describe("cli program (smoke)", () => {
|
||||
key: "sk-moonshot-test",
|
||||
field: "moonshotApiKey",
|
||||
},
|
||||
{
|
||||
authChoice: "together-api-key",
|
||||
flag: "--together-api-key",
|
||||
key: "sk-together-test",
|
||||
field: "togetherApiKey",
|
||||
},
|
||||
{
|
||||
authChoice: "moonshot-api-key-cn",
|
||||
flag: "--moonshot-api-key",
|
||||
|
||||
Reference in New Issue
Block a user