-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
I see in offical doc, there is a code sample for image generation:
const openRouter = new OpenRouter({
--
apiKey: '<OPENROUTER_API_KEY>',
});
const result = await openRouter.chat.send({
model: 'google/gemini-2.5-flash-image-preview',
messages: [
{
role: 'user',
content: 'Generate a beautiful sunset over mountains',
},
],
modalities: ['image', 'text'],
stream: false,
});
while I copied the code, the type checker complains, there is no type define for 'modalities'
SDK VERSION: 0.3.11
SugiKent, venarius and egorprnn
Metadata
Metadata
Assignees
Labels
No labels