mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
OmniRoute v3.8.26 — see CHANGELOG.md [3.8.26] for the full notes. Highlights: Vertex AI media generation (#3929), GLM-5.2 effort-tier routing (#3885), sticky round-robin combos (#3846), OpenRouter connection presets (#3878), compression prompt-cache fix (#3936/#3890), and a security pass (form-data/vite + workflow hardening, #3949). Co-authored-by: artickc <artickc@users.noreply.github.com> Co-authored-by: rdself <rdself@users.noreply.github.com> Co-authored-by: herjarsa <herjarsa@users.noreply.github.com> Co-authored-by: Jack Smith <16862258+YunyunZhai@users.noreply.github.com> Co-authored-by: dhaern <dhaern@users.noreply.github.com> Co-authored-by: adivekar-utexas <adivekar-utexas@users.noreply.github.com> Co-authored-by: megamen32 <megamen32@users.noreply.github.com> Co-authored-by: zhiru <zhiru@users.noreply.github.com> Co-authored-by: insoln <insoln@users.noreply.github.com> Co-authored-by: diego-anselmo <diego-anselmo@users.noreply.github.com>
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();
|