expect(resolveConfiguredLiveVideoModels(cfg)).toEqual( new Map([
["google", "google/veo-3.1-fast-generate-preview"],
["openai", "openai/sora-2"],
]),
);
});
it("uses an empty auth store when live env keys should override stale profiles", () => {
expect(
resolveLiveVideoAuthStore({
requireProfileKeys: false,
hasLiveKeys: true,
}),
).toEqual({
version: 1,
profiles: {},
});
});
it("keeps profile-store mode when requested or when no live keys exist", () => {
expect(
resolveLiveVideoAuthStore({
requireProfileKeys: true,
hasLiveKeys: true,
}),
).toBeUndefined();
expect(
resolveLiveVideoAuthStore({
requireProfileKeys: false,
hasLiveKeys: false,
}),
).toBeUndefined();
});
it("redacts live API keys for diagnostics", () => {
expect(redactLiveApiKey(undefined)).toBe("none");
expect(redactLiveApiKey("short-key")).toBe("short-key");
expect(redactLiveApiKey("sk-proj-1234567890")).toBe("sk-proj-...7890");
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.