@theoremjs/agents 0.3.4-next.727.g8a08b91 → 0.3.4-next.729.g096feb6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -83,10 +83,17 @@ export function wireMessageContent(parts) {
|
|
|
83
83
|
if (part.type === 'audio') {
|
|
84
84
|
return wireAudioPart(part);
|
|
85
85
|
}
|
|
86
|
+
if (part.type === 'video') {
|
|
87
|
+
// why: a video sent as a `file` part is refused; OpenRouter reads it only as `video_url`.
|
|
88
|
+
return {
|
|
89
|
+
type: 'video_url',
|
|
90
|
+
video_url: { url: `data:${part.mimeType};base64,${part.data}` },
|
|
91
|
+
};
|
|
92
|
+
}
|
|
86
93
|
return {
|
|
87
94
|
type: 'file',
|
|
88
95
|
file: {
|
|
89
|
-
filename:
|
|
96
|
+
filename: 'document.bin',
|
|
90
97
|
file_data: `data:${part.mimeType};base64,${part.data}`,
|
|
91
98
|
},
|
|
92
99
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theoremjs/agents",
|
|
3
|
-
"version": "0.3.4-next.
|
|
3
|
+
"version": "0.3.4-next.729.g096feb6",
|
|
4
4
|
"description": "A flat TypeScript agent kernel for typed profiles, deterministic turn execution, registered tools, provider adapters, guardrails, and host-injected traces.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|