@sema-agent/core
Version:
Stateless, task-oriented AI agent core
31 lines (30 loc) • 1.06 kB
JavaScript
import { catalogText } from "../prompt-assembly/catalog/index.js";
import { ANTHROPIC_DEFAULT_BASE_URL } from "./anthropic.js";
export const FABLE_5_COMPAT = {
thinkingMode: "adaptive",
effortLevels: ["low", "medium", "high", "xhigh", "max"],
supportsTemperature: false,
};
export const FABLE_5_PROMPT_GUIDANCE = [
catalogText("core/behavior.fable-classic.final-message"),
catalogText("core/behavior.fable-classic.autonomy"),
catalogText("core/behavior.fable-classic.tool-json"),
];
export function fable5Model(overrides = {}) {
return {
id: "claude-fable-5",
name: "Claude Fable 5",
api: "anthropic-messages",
provider: "anthropic",
baseUrl: ANTHROPIC_DEFAULT_BASE_URL,
reasoning: true,
defaultThinking: "high",
input: ["text", "image"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 1_000_000,
maxTokens: 64_000,
charsPerToken: 3,
compat: { ...FABLE_5_COMPAT },
...overrides,
};
}