chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user