Correct input_video to video_url in embedOpenRouterMedia() (#5331)

This commit is contained in:
cloak1505
2026-03-21 16:55:42 -05:00
committed by GitHub
parent 67f97dbe73
commit e3fbc8510a
+1 -1
View File
@@ -1339,7 +1339,7 @@ export function embedOpenRouterMedia(messages, { audio = true, video = true } =
for (const contentPart of message.content) {
if (video && contentPart?.type === 'video_url' && contentPart.video_url?.url?.startsWith('data:')) {
contentPart.type = 'input_video';
contentPart.type = 'video_url';
}
if (audio && contentPart?.type === 'audio_url' && contentPart.audio_url?.url?.startsWith('data:')) {