style: fix formatting in model.ts

This commit is contained in:
忻役 2026-03-13 20:05:08 +08:00 committed by Jerry-Xin
parent 29616c33f3
commit 2355b0603c

View File

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