mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
feat(plugins): externalize NovitaAI provider (#117007)
This commit is contained in:
@@ -2171,6 +2171,19 @@ describe("official external plugin catalog", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("maps NovitaAI provider aliases and credentials to the external plugin", () => {
|
||||
expect(
|
||||
resolveOfficialExternalProviderPluginIds({
|
||||
providerIds: new Set(["novita", "novita-ai", "novitaai"]),
|
||||
}),
|
||||
).toEqual(["novita"]);
|
||||
expect(
|
||||
resolveOfficialExternalProviderPluginIdsForEnv({
|
||||
NOVITA_API_KEY: "novita-key",
|
||||
}),
|
||||
).toEqual(["novita"]);
|
||||
});
|
||||
|
||||
it.each([
|
||||
["teams-meetings", "@openclaw/teams-meetings", "teams_meetings", "teams"],
|
||||
["zoom-meetings", "@openclaw/zoom-meetings", "zoom_meetings", "zoom"],
|
||||
|
||||
@@ -133,6 +133,7 @@ describe("official external provider endpoint catalog mirror", () => {
|
||||
expect(endpointClasses).toContain("modelstudio-native");
|
||||
expect(endpointClasses).toContain("moonshot-native");
|
||||
expect(endpointClasses).toContain("meta-native");
|
||||
expect(endpointClasses).toContain("novita-native");
|
||||
expect(endpointClasses).toContain("xiaomi-native");
|
||||
expect(endpointClasses).toContain("zai-native");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user