@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.d.mts
CHANGED
|
@@ -3,6 +3,9 @@ import { FetchFunction } from '@ai-sdk/provider-utils';
|
|
|
3
3
|
import { z } from 'zod/v4';
|
|
4
4
|
|
|
5
5
|
type RivetChatModelId = string;
|
|
6
|
+
type JSONValue = null | string | number | boolean | {
|
|
7
|
+
[key: string]: JSONValue;
|
|
8
|
+
} | JSONValue[];
|
|
6
9
|
declare const rivetLanguageModelOptions: z.ZodObject<{
|
|
7
10
|
runParams: z.ZodObject<{
|
|
8
11
|
openaiApiKey: z.ZodOptional<z.ZodString>;
|
|
@@ -55,7 +58,7 @@ declare const rivetLanguageModelOptions: z.ZodObject<{
|
|
|
55
58
|
}, z.core.$strip>;
|
|
56
59
|
rivetInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
57
60
|
type: z.ZodString;
|
|
58
|
-
value: z.
|
|
61
|
+
value: z.ZodType<JSONValue, unknown, z.core.$ZodTypeInternals<JSONValue, unknown>>;
|
|
59
62
|
}, z.core.$strip>>>;
|
|
60
63
|
}, z.core.$strip>;
|
|
61
64
|
type RivetLanguageModelOptions = z.infer<typeof rivetLanguageModelOptions>;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ import { FetchFunction } from '@ai-sdk/provider-utils';
|
|
|
3
3
|
import { z } from 'zod/v4';
|
|
4
4
|
|
|
5
5
|
type RivetChatModelId = string;
|
|
6
|
+
type JSONValue = null | string | number | boolean | {
|
|
7
|
+
[key: string]: JSONValue;
|
|
8
|
+
} | JSONValue[];
|
|
6
9
|
declare const rivetLanguageModelOptions: z.ZodObject<{
|
|
7
10
|
runParams: z.ZodObject<{
|
|
8
11
|
openaiApiKey: z.ZodOptional<z.ZodString>;
|
|
@@ -55,7 +58,7 @@ declare const rivetLanguageModelOptions: z.ZodObject<{
|
|
|
55
58
|
}, z.core.$strip>;
|
|
56
59
|
rivetInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
57
60
|
type: z.ZodString;
|
|
58
|
-
value: z.
|
|
61
|
+
value: z.ZodType<JSONValue, unknown, z.core.$ZodTypeInternals<JSONValue, unknown>>;
|
|
59
62
|
}, z.core.$strip>>>;
|
|
60
63
|
}, z.core.$strip>;
|
|
61
64
|
type RivetLanguageModelOptions = z.infer<typeof rivetLanguageModelOptions>;
|
package/dist/index.js
CHANGED
|
@@ -931,6 +931,16 @@ function mapRivetFinishReason(finishReason) {
|
|
|
931
931
|
|
|
932
932
|
// src/rivet-chat-options.ts
|
|
933
933
|
var import_v4 = require("zod/v4");
|
|
934
|
+
var jsonValue = import_v4.z.lazy(
|
|
935
|
+
() => import_v4.z.union([
|
|
936
|
+
import_v4.z.string(),
|
|
937
|
+
import_v4.z.number(),
|
|
938
|
+
import_v4.z.boolean(),
|
|
939
|
+
import_v4.z.null(),
|
|
940
|
+
import_v4.z.array(jsonValue),
|
|
941
|
+
import_v4.z.record(import_v4.z.string(), jsonValue)
|
|
942
|
+
])
|
|
943
|
+
);
|
|
934
944
|
var rivetRunParamsSchema = import_v4.z.object({
|
|
935
945
|
openaiApiKey: import_v4.z.string().optional(),
|
|
936
946
|
openaiEndpoint: import_v4.z.string().optional(),
|
|
@@ -947,7 +957,7 @@ var graphInputSchema = import_v4.z.record(
|
|
|
947
957
|
// key type
|
|
948
958
|
import_v4.z.object({
|
|
949
959
|
type: import_v4.z.string(),
|
|
950
|
-
value:
|
|
960
|
+
value: jsonValue
|
|
951
961
|
})
|
|
952
962
|
).optional();
|
|
953
963
|
var standardChatConfigSchema = import_v4.z.object({
|
|
@@ -1124,7 +1134,7 @@ prepare tools input:${printObject(tools)}`);
|
|
|
1124
1134
|
}
|
|
1125
1135
|
|
|
1126
1136
|
// src/version.ts
|
|
1127
|
-
var VERSION = true ? "2.0.
|
|
1137
|
+
var VERSION = true ? "2.0.6" : "0.0.0-test";
|
|
1128
1138
|
|
|
1129
1139
|
// src/post-to-api.ts
|
|
1130
1140
|
var getOriginalFetch = () => globalThis.fetch;
|