@purpleschool/gptbot 0.12.43 → 0.12.44
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.
|
@@ -6,7 +6,7 @@ const zod_1 = require("zod");
|
|
|
6
6
|
var CalculateChatPriceCommand;
|
|
7
7
|
(function (CalculateChatPriceCommand) {
|
|
8
8
|
CalculateChatPriceCommand.RequestSchema = zod_1.z.object({
|
|
9
|
-
|
|
9
|
+
inputLength: zod_1.z.number().int().nonnegative(),
|
|
10
10
|
chatId: zod_1.z.string().uuid().optional(),
|
|
11
11
|
aiModelId: zod_1.z.string().uuid(),
|
|
12
12
|
files: zod_1.z.array(zod_1.z.string().uuid()).optional().default([]),
|
|
@@ -14,5 +14,6 @@ var CalculateChatPriceCommand;
|
|
|
14
14
|
});
|
|
15
15
|
CalculateChatPriceCommand.ResponseSchema = zod_1.z.object({
|
|
16
16
|
price: zod_1.z.number(),
|
|
17
|
+
charsUntilNextPriceChange: zod_1.z.number().int().nonnegative().nullable(),
|
|
17
18
|
});
|
|
18
19
|
})(CalculateChatPriceCommand || (exports.CalculateChatPriceCommand = CalculateChatPriceCommand = {}));
|
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
|
|
4
4
|
export namespace CalculateChatPriceCommand {
|
|
5
5
|
export const RequestSchema = z.object({
|
|
6
|
-
|
|
6
|
+
inputLength: z.number().int().nonnegative(),
|
|
7
7
|
chatId: z.string().uuid().optional(),
|
|
8
8
|
aiModelId: z.string().uuid(),
|
|
9
9
|
files: z.array(z.string().uuid()).optional().default([]),
|
|
@@ -12,6 +12,7 @@ export namespace CalculateChatPriceCommand {
|
|
|
12
12
|
|
|
13
13
|
export const ResponseSchema = z.object({
|
|
14
14
|
price: z.number(),
|
|
15
|
+
charsUntilNextPriceChange: z.number().int().nonnegative().nullable(),
|
|
15
16
|
});
|
|
16
17
|
|
|
17
18
|
export type Request = z.infer<typeof RequestSchema>;
|