Skip to content
Source
Sign inSign up
Open History to see the last commit

ClaudeModelCatalog.testFixtures.ts

83 lines2.2 KB

1import type { ClaudeModelCatalog } from "./ClaudeModelCatalog.ts";
2​
3export const SYNTHETIC_CLAUDE_CAPABLE_MODEL = "claude-synthetic-capable";
4export const SYNTHETIC_CLAUDE_COLLIDING_ALIAS = "synthetic-collision";
5export const SYNTHETIC_CLAUDE_STANDARD_MODEL = "claude-synthetic-standard";
6const SYNTHETIC_CLAUDE_THINKING_MODEL = "claude-synthetic-thinking";
7​
8const effort = {
9 id: "effort",
10 label: "Reasoning",
11 type: "select" as const,
12 options: [
13 { id: "low", label: "Low" },
14 { id: "high", label: "High", isDefault: true },
15 { id: "max", label: "Max" },
16 { id: "ultrathink", label: "Ultrathink" },
17 ],
18 promptInjectedValues: ["ultrathink"],
19};
20​
21const contextWindow = {
22 id: "contextWindow",
23 label: "Context Window",
24 type: "select" as const,
25 options: [
26 { id: "standard", label: "Standard" },
27 { id: "expanded", label: "Expanded", isDefault: true },
28 ],
29};
30​
31const runtime = {
32 effortMap: { ultrathink: null },
33 modelSuffixes: { contextWindow: { expanded: "[expanded]" } },
34 contextWindowTokens: { standard: 200_000, expanded: 1_000_000 },
35};
36​
37export const SYNTHETIC_CLAUDE_MODEL_CATALOG: ClaudeModelCatalog = {
38 models: [
39 {
40 model: {
41 slug: SYNTHETIC_CLAUDE_CAPABLE_MODEL,
42 name: "Claude Synthetic Capable",
43 aliases: [SYNTHETIC_CLAUDE_COLLIDING_ALIAS],
44 isCustom: false,
45 capabilities: {
46 optionDescriptors: [
47 effort,
48 { id: "fastMode", label: "Fast Mode", type: "boolean" },
49 contextWindow,
50 ],
51 },
52 },
53 runtime,
54 compatibility: {},
55 },
56 {
57 model: {
58 slug: SYNTHETIC_CLAUDE_STANDARD_MODEL,
59 name: "Claude Synthetic Standard",
60 isCustom: false,
61 capabilities: {
62 optionDescriptors: [effort, contextWindow],
63 },
64 },
65 runtime,
66 compatibility: {},
67 },
68 {
69 model: {
70 slug: SYNTHETIC_CLAUDE_THINKING_MODEL,
71 name: "Claude Synthetic Thinking",
72 isCustom: false,
73 capabilities: {
74 optionDescriptors: [
75 { id: "thinking", label: "Thinking", type: "boolean", currentValue: true },
76 ],
77 },
78 },
79 runtime: {},
80 compatibility: {},
81 },
82 ],
83};