Skip to content

missing 'modalities' #132

@lava-hammer

Description

@lava-hammer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions