mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-15 09:01:13 +00:00
- Copy all pi-mono source into apps/companion-os/ - Update Dockerfile to COPY pre-built binary instead of downloading from GitHub Releases - Update deploy-staging.yml to build pi from source (bun compile) before Docker build - Add apps/companion-os/** to path triggers - No more cross-repo dispatch needed Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
1,004 B
TypeScript
28 lines
1,004 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { getModel, supportsXhigh } from "../src/models.js";
|
|
|
|
describe("supportsXhigh", () => {
|
|
it("returns true for Anthropic Opus 4.6 on anthropic-messages API", () => {
|
|
const model = getModel("anthropic", "claude-opus-4-6");
|
|
expect(model).toBeDefined();
|
|
expect(supportsXhigh(model!)).toBe(true);
|
|
});
|
|
|
|
it("returns false for non-Opus Anthropic models", () => {
|
|
const model = getModel("anthropic", "claude-sonnet-4-5");
|
|
expect(model).toBeDefined();
|
|
expect(supportsXhigh(model!)).toBe(false);
|
|
});
|
|
|
|
it("returns true for GPT-5.4 models", () => {
|
|
const model = getModel("openai-codex", "gpt-5.4");
|
|
expect(model).toBeDefined();
|
|
expect(supportsXhigh(model!)).toBe(true);
|
|
});
|
|
|
|
it("returns false for OpenRouter Opus 4.6 (openai-completions API)", () => {
|
|
const model = getModel("openrouter", "anthropic/claude-opus-4.6");
|
|
expect(model).toBeDefined();
|
|
expect(supportsXhigh(model!)).toBe(false);
|
|
});
|
|
});
|