@purpleschool/gptbot 0.5.83 → 0.5.85
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AiModelConfigSchema = exports.AiModelImageStyleParameter = exports.AiModelImageStyleOptionSchema = exports.AiModelImageSizeParameter = exports.AiModelImageSizeOptionSchema = exports.AiModelConfigParameterSchema = void 0;
|
|
3
|
+
exports.AiModelConfigSchema = exports.AiModelWebSearchParameter = exports.AiModelImageStyleParameter = exports.AiModelImageStyleOptionSchema = exports.AiModelImageSizeParameter = exports.AiModelImageSizeOptionSchema = exports.AiModelConfigParameterSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
exports.AiModelConfigParameterSchema = zod_1.z.object({
|
|
@@ -28,12 +28,17 @@ exports.AiModelImageStyleParameter = zod_1.z.object({
|
|
|
28
28
|
title: zod_1.z.string(),
|
|
29
29
|
options: zod_1.z.array(exports.AiModelImageStyleOptionSchema),
|
|
30
30
|
});
|
|
31
|
+
// WEB SEARCH
|
|
32
|
+
exports.AiModelWebSearchParameter = zod_1.z.object({
|
|
33
|
+
webSearchPrice: zod_1.z.number(),
|
|
34
|
+
});
|
|
31
35
|
// CONFIG
|
|
32
36
|
exports.AiModelConfigSchema = zod_1.z.object({
|
|
33
37
|
parameters: zod_1.z
|
|
34
38
|
.object({
|
|
35
39
|
[constants_1.AI_MODEL_CONFIG_PARAM.IMAGE_SIZE]: exports.AiModelImageSizeParameter.optional(),
|
|
36
40
|
[constants_1.AI_MODEL_CONFIG_PARAM.IMAGE_STYLE]: exports.AiModelImageStyleParameter.optional(),
|
|
41
|
+
[constants_1.AI_MODEL_CONFIG_PARAM.WEB_SEARCH]: exports.AiModelWebSearchParameter.optional(),
|
|
37
42
|
})
|
|
38
43
|
.strict(),
|
|
39
44
|
});
|
|
@@ -33,6 +33,12 @@ export const AiModelImageStyleParameter = z.object({
|
|
|
33
33
|
options: z.array(AiModelImageStyleOptionSchema),
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
+
// WEB SEARCH
|
|
37
|
+
|
|
38
|
+
export const AiModelWebSearchParameter = z.object({
|
|
39
|
+
webSearchPrice: z.number(),
|
|
40
|
+
});
|
|
41
|
+
|
|
36
42
|
// CONFIG
|
|
37
43
|
|
|
38
44
|
export const AiModelConfigSchema = z.object({
|
|
@@ -40,6 +46,7 @@ export const AiModelConfigSchema = z.object({
|
|
|
40
46
|
.object({
|
|
41
47
|
[AI_MODEL_CONFIG_PARAM.IMAGE_SIZE]: AiModelImageSizeParameter.optional(),
|
|
42
48
|
[AI_MODEL_CONFIG_PARAM.IMAGE_STYLE]: AiModelImageStyleParameter.optional(),
|
|
49
|
+
[AI_MODEL_CONFIG_PARAM.WEB_SEARCH]: AiModelWebSearchParameter.optional(),
|
|
43
50
|
})
|
|
44
51
|
.strict(),
|
|
45
52
|
});
|
|
@@ -49,4 +56,5 @@ export type AiModelImageSizeOption = z.infer<typeof AiModelImageSizeOptionSchema
|
|
|
49
56
|
export type AiModelImageSizeParameter = z.infer<typeof AiModelImageSizeParameter>;
|
|
50
57
|
export type AiModelImageStyleOption = z.infer<typeof AiModelImageStyleOptionSchema>;
|
|
51
58
|
export type AiModelImageStyleParameter = z.infer<typeof AiModelImageStyleParameter>;
|
|
59
|
+
export type AiModelWebSeachParameter = z.infer<typeof AiModelWebSearchParameter>;
|
|
52
60
|
export type AiModelConfig = z.infer<typeof AiModelConfigSchema>;
|