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 6fefa7e commit 06dd378Copy full SHA for 06dd378
1 file changed
extensions/anthropic/register.runtime.ts
@@ -381,13 +381,9 @@ function hasImageInput(input: unknown): boolean {
381
}
382
383
function supportsAnthropicImageInput(modelId: string, modelName?: string): boolean {
384
- const candidates = [modelId, modelName]
+ return [modelId, modelName]
385
.filter((value): value is string => typeof value === "string")
386
- .map((value) => normalizeLowercaseStringOrEmpty(value))
387
- .filter(Boolean);
388
- return candidates.some((candidate) =>
389
- ANTHROPIC_MODERN_MODEL_PREFIXES.some((prefix) => candidate.startsWith(prefix)),
390
- );
+ .some((candidate) => matchesAnthropicModernModel(candidate));
391
392
393
function applyAnthropicImageInputCapability(params: {
0 commit comments