openrouter image support
This commit is contained in:
parent
2349477512
commit
a96e81bb36
1 changed files with 5 additions and 2 deletions
|
|
@ -58,6 +58,7 @@ const PROVIDER_SUPPORTS_IMAGES: ModelProvider[] = [
|
|||
"bedrock",
|
||||
"sagemaker",
|
||||
"continue-proxy",
|
||||
"openrouter",
|
||||
];
|
||||
|
||||
const MODEL_SUPPORTS_IMAGES: string[] = [
|
||||
|
|
@ -79,9 +80,11 @@ function modelSupportsImages(
|
|||
provider: ModelProvider,
|
||||
model: string,
|
||||
title: string | undefined,
|
||||
capabilities: ModelCapability | undefined
|
||||
capabilities: ModelCapability | undefined,
|
||||
): boolean {
|
||||
if (capabilities?.uploadImage !== undefined) {return capabilities.uploadImage;}
|
||||
if (capabilities?.uploadImage !== undefined) {
|
||||
return capabilities.uploadImage;
|
||||
}
|
||||
if (!PROVIDER_SUPPORTS_IMAGES.includes(provider)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue