@alpic80/rivet-ai-sdk-provider 2.0.5 → 2.0.6
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.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -898,6 +898,16 @@ function mapRivetFinishReason(finishReason) {
|
|
|
898
898
|
|
|
899
899
|
// src/rivet-chat-options.ts
|
|
900
900
|
import { z } from "zod/v4";
|
|
901
|
+
var jsonValue = z.lazy(
|
|
902
|
+
() => z.union([
|
|
903
|
+
z.string(),
|
|
904
|
+
z.number(),
|
|
905
|
+
z.boolean(),
|
|
906
|
+
z.null(),
|
|
907
|
+
z.array(jsonValue),
|
|
908
|
+
z.record(z.string(), jsonValue)
|
|
909
|
+
])
|
|
910
|
+
);
|
|
901
911
|
var rivetRunParamsSchema = z.object({
|
|
902
912
|
openaiApiKey: z.string().optional(),
|
|
903
913
|
openaiEndpoint: z.string().optional(),
|
|
@@ -914,7 +924,7 @@ var graphInputSchema = z.record(
|
|
|
914
924
|
// key type
|
|
915
925
|
z.object({
|
|
916
926
|
type: z.string(),
|
|
917
|
-
value:
|
|
927
|
+
value: jsonValue
|
|
918
928
|
})
|
|
919
929
|
).optional();
|
|
920
930
|
var standardChatConfigSchema = z.object({
|
|
@@ -1091,7 +1101,7 @@ prepare tools input:${printObject(tools)}`);
|
|
|
1091
1101
|
}
|
|
1092
1102
|
|
|
1093
1103
|
// src/version.ts
|
|
1094
|
-
var VERSION = true ? "2.0.
|
|
1104
|
+
var VERSION = true ? "2.0.6" : "0.0.0-test";
|
|
1095
1105
|
|
|
1096
1106
|
// src/post-to-api.ts
|
|
1097
1107
|
var getOriginalFetch = () => globalThis.fetch;
|