We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f5320 commit 718a75aCopy full SHA for 718a75a
src/shared/api.ts
@@ -65,6 +65,12 @@ export const getModelMaxOutputTokens = ({
65
settings?: ProviderSettings
66
format?: "anthropic" | "openai" | "gemini" | "openrouter"
67
}): number | undefined => {
68
+ // Special-case: Slack request to cap OpenRouter horizon-alpha default output to 32k
69
+ // Only applies when routed via OpenRouter and the model id is exactly "openrouter/horizon-alpha"
70
+ if (format === "openrouter" && modelId === "openrouter/horizon-alpha") {
71
+ return 32_000
72
+ }
73
+
74
// Check for Claude Code specific max output tokens setting
75
if (settings?.apiProvider === "claude-code") {
76
return settings.claudeCodeMaxOutputTokens || CLAUDE_CODE_DEFAULT_MAX_OUTPUT_TOKENS
0 commit comments