24 lines
710 B
TypeScript
24 lines
710 B
TypeScript
const CLAUDE_CODE_COMPATIBLE_BASE_BETAS = [
|
|
"claude-code-20250219",
|
|
"interleaved-thinking-2025-05-14",
|
|
"effort-2025-11-24",
|
|
];
|
|
|
|
export const CLAUDE_CODE_COMPATIBLE_REDACT_THINKING_BETA = "redact-thinking-2026-02-12";
|
|
|
|
export type ClaudeCodeCompatibleBetaOptions = {
|
|
redactThinking?: boolean;
|
|
};
|
|
|
|
export function resolveClaudeCodeCompatibleAnthropicBeta(
|
|
options: ClaudeCodeCompatibleBetaOptions = {}
|
|
): string {
|
|
const betas = [...CLAUDE_CODE_COMPATIBLE_BASE_BETAS];
|
|
if (options.redactThinking === true) {
|
|
betas.push(CLAUDE_CODE_COMPATIBLE_REDACT_THINKING_BETA);
|
|
}
|
|
return betas.join(",");
|
|
}
|
|
|
|
export const CLAUDE_CODE_COMPATIBLE_ANTHROPIC_BETA = resolveClaudeCodeCompatibleAnthropicBeta();
|