fix(image): remove unnecessary type assertion
This commit is contained in:
parent
997343bc3f
commit
29616c33f3
@ -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"];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user