fix(image): remove unnecessary type assertion

This commit is contained in:
忻役 2026-03-13 19:06:53 +08:00 committed by Jerry-Xin
parent 997343bc3f
commit 29616c33f3

View File

@ -318,9 +318,9 @@ export function resolveModelWithRegistry(params: {
(candidate) => candidate.id === modelId,
);
const resolvedInput: Array<"text" | "image"> = configuredOpenRouterModel?.input
? (configuredOpenRouterModel.input.filter(
? configuredOpenRouterModel.input.filter(
(item) => item === "text" || item === "image",
) as Array<"text" | "image">)
)
: isLikelyVisionModel(modelId)
? ["text", "image"]
: ["text"];