Unverified 提交 ddce3c65 authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Lower max tokens for anthropic (#367)

上级 1a39238e
...@@ -58,7 +58,8 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = { ...@@ -58,7 +58,8 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = {
name: "claude-sonnet-4-20250514", name: "claude-sonnet-4-20250514",
displayName: "Claude 4 Sonnet", displayName: "Claude 4 Sonnet",
description: "Excellent coder", description: "Excellent coder",
maxOutputTokens: 64_000, // See comment below for Claude 3.7 Sonnet for why we set this to 16k
maxOutputTokens: 16_000,
contextWindow: 200_000, contextWindow: 200_000,
supportsTurboEdits: true, supportsTurboEdits: true,
}, },
...@@ -66,7 +67,11 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = { ...@@ -66,7 +67,11 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = {
name: "claude-3-7-sonnet-latest", name: "claude-3-7-sonnet-latest",
displayName: "Claude 3.7 Sonnet", displayName: "Claude 3.7 Sonnet",
description: "Excellent coder", description: "Excellent coder",
maxOutputTokens: 64_000, // Technically the max output tokens is 64k, *however* if the user has a lot of input tokens,
// then setting a high max output token will cause the request to fail because
// the max output tokens is *included* in the context window limit, see:
// https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking#max-tokens-and-context-window-size-with-extended-thinking
maxOutputTokens: 16_000,
contextWindow: 200_000, contextWindow: 200_000,
supportsTurboEdits: true, supportsTurboEdits: true,
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论