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 9074900 commit db06273Copy full SHA for db06273
src/handlers/anthropic.ts
@@ -341,9 +341,18 @@ export const getDefaultMaxTokens = (model: string): number => {
341
model === 'claude-instant-1.2'
342
) {
343
return 4096
344
- } else {
345
- throw new InputError(`Unknown model: ${model}`)
346
}
+
+ if (
347
+ model === 'claude-3-5-sonnet-20241022' ||
348
+ model === 'claude-3-7-sonnet-latest' ||
349
+ model === 'claude-3-7-sonnet-20250219' ||
350
+ model === 'claude-3-5-haiku-20241022'
351
+ ) {
352
+ return 8192
353
+ }
354
355
+ throw new InputError(`Unknown model: ${model}`)
356
357
358
export const convertMessages = async (
0 commit comments