@alpic80/rivet-ai-sdk-provider 2.0.8 → 2.0.9
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/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -823,6 +823,13 @@ function convertToRivetChatMessages(prompt) {
|
|
|
823
823
|
functionality: "Invalid images mediaType"
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
|
+
} else if (part.mediaType === "application/pdf") {
|
|
827
|
+
return {
|
|
828
|
+
type: "file",
|
|
829
|
+
filename: part.filename || "file.pdf",
|
|
830
|
+
mediaType: "application/pdf",
|
|
831
|
+
data: part.data.toString()
|
|
832
|
+
};
|
|
826
833
|
} else {
|
|
827
834
|
throw new UnsupportedFunctionalityError({
|
|
828
835
|
functionality: "Only images and PDF file parts are supported"
|
|
@@ -1135,7 +1142,7 @@ prepare tools input:${printObject(tools)}`);
|
|
|
1135
1142
|
}
|
|
1136
1143
|
|
|
1137
1144
|
// src/version.ts
|
|
1138
|
-
var VERSION = true ? "2.0.
|
|
1145
|
+
var VERSION = true ? "2.0.9" : "0.0.0-test";
|
|
1139
1146
|
|
|
1140
1147
|
// src/post-to-api.ts
|
|
1141
1148
|
var getOriginalFetch = () => globalThis.fetch;
|