fix(models): recognize Venice-style claude-opus-45 as claude-opus-4-5 thanks @jonisjongithub

This commit is contained in:
Vignesh
2026-01-27 12:40:06 -08:00
committed by GitHub
2 changed files with 21 additions and 1 deletions
+17
View File
@@ -730,6 +730,23 @@ describe("security audit", () => {
);
});
it("does not warn on Venice-style opus-45 model names", async () => {
// Venice uses "claude-opus-45" format (no dash between 4 and 5)
const cfg: ClawdbotConfig = {
agents: { defaults: { model: { primary: "venice/claude-opus-45" } } },
};
const res = await runSecurityAudit({
config: cfg,
includeFilesystem: false,
includeChannelSecurity: false,
});
// Should NOT contain weak_tier warning for opus-45
const weakTierFinding = res.findings.find((f) => f.checkId === "models.weak_tier");
expect(weakTierFinding).toBeUndefined();
});
it("warns when hooks token looks short", async () => {
const cfg: MoltbotConfig = {
hooks: { enabled: true, token: "short" },