@alpic80/rivet-core 1.24.2-aidon.12 → 1.24.2-aidon.14
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.
- package/dist/cjs/bundle.cjs +11 -1
- package/dist/cjs/bundle.cjs.map +2 -2
- package/dist/esm/model/GraphProcessor.js +1 -1
- package/dist/esm/plugins/anthropic/nodes/ChatAnthropicNode.js +2 -0
- package/dist/esm/utils/chatMessageToOpenAIChatCompletionMessage.js +8 -0
- package/dist/types/model/DataValue.d.ts +5 -0
- package/dist/types/utils/openai.d.ts +8 -1
- package/package.json +2 -2
package/dist/cjs/bundle.cjs
CHANGED
|
@@ -2925,6 +2925,14 @@ async function chatMessageToOpenAIChatCompletionMessage(message, options2) {
|
|
|
2925
2925
|
if (typeof part === "string") {
|
|
2926
2926
|
return { type: "text", text: part };
|
|
2927
2927
|
}
|
|
2928
|
+
if (part.type === "file") {
|
|
2929
|
+
return {
|
|
2930
|
+
type: "file",
|
|
2931
|
+
filename: part.filename || "file.pdf",
|
|
2932
|
+
mediaType: part.mediaType,
|
|
2933
|
+
data: part.data.toString()
|
|
2934
|
+
};
|
|
2935
|
+
}
|
|
2928
2936
|
const url = part.type === "url" ? part.url : `data:${part.mediaType};base64,${await uint8ArrayToBase64(part.data)}`;
|
|
2929
2937
|
return {
|
|
2930
2938
|
type: "image_url",
|
|
@@ -15496,7 +15504,7 @@ var GraphProcessor = class _GraphProcessor {
|
|
|
15496
15504
|
}
|
|
15497
15505
|
const startNodes = this.runToNodeIds ? this.#graph.nodes.filter((node) => {
|
|
15498
15506
|
var _a;
|
|
15499
|
-
return (_a = this.runToNodeIds) == null ? void 0 : _a.includes(node.id);
|
|
15507
|
+
return ((_a = this.runToNodeIds) == null ? void 0 : _a.includes(node.id)) || node.type === "setGlobal";
|
|
15500
15508
|
}) : this.#graph.nodes.filter((node) => this.#outputNodesFrom(node).nodes.length === 0);
|
|
15501
15509
|
await this.#waitUntilUnpaused();
|
|
15502
15510
|
for (const startNode of startNodes) {
|
|
@@ -18080,6 +18088,8 @@ async function chatMessageContentToClaude3ChatMessage(content) {
|
|
|
18080
18088
|
};
|
|
18081
18089
|
case "url":
|
|
18082
18090
|
throw new Error("unable to convert urls for Claude");
|
|
18091
|
+
case "file":
|
|
18092
|
+
throw new Error("unable to convert files for Claude");
|
|
18083
18093
|
case "document":
|
|
18084
18094
|
return {
|
|
18085
18095
|
type: "document",
|