Skip to content

Commit a7ca713

Browse files
committed
fix: Message content type is narrower than adapter support
1 parent 07a634f commit a7ca713

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/typescript/ai-openrouter/src/text/text-provider-options.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,20 @@ export interface InternalTextProviderOptions extends ExternalTextProviderOptions
284284
content:
285285
| string
286286
| Array<{
287-
type: 'text' | 'image_url'
287+
type:
288+
| 'text'
289+
| 'image_url'
290+
| 'audio_url'
291+
| 'video_url'
292+
| 'document_url'
288293
text?: string
289294
image_url?: {
290295
url: string
291296
detail?: 'auto' | 'low' | 'high'
292297
}
298+
audio_url?: { url: string }
299+
video_url?: { url: string }
300+
document_url?: { url: string }
293301
}>
294302
tool_call_id?: string
295303
name?: string

0 commit comments

Comments
 (0)