feat: unify gateway heartbeat

This commit is contained in:
Peter Steinberger committed 2025-12-26 02:35:40 +01:00
1 parent 8f9d7405ed
commit 0d8e0ddc4f
19 files changed
+744 -953

No files matched your search

+2 -5
View File
@@ -19,7 +19,7 @@ describe("resolveConfiguredModelRef", () => {
expect(resolved).toEqual({ provider: "openai", model: "gpt-4.1-mini" });
});
it("falls back to default provider when agent.model omits it", () => {
it("falls back to anthropic when agent.model omits provider", () => {
const cfg = {
agent: { model: "claude-opus-4-5" },
} satisfies ClawdisConfig;
@@ -30,10 +30,7 @@ describe("resolveConfiguredModelRef", () => {
defaultModel: DEFAULT_MODEL,
});
expect(resolved).toEqual({
provider: DEFAULT_PROVIDER,
model: "claude-opus-4-5",
});
expect(resolved).toEqual({ provider: "anthropic", model: "claude-opus-4-5" });
});
it("falls back to defaults when agent.model is missing", () => {