chatifai 1.0.35 → 1.0.37
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.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.js +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
- package/types.ts +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
161
161
|
} & {
|
|
162
162
|
title: string;
|
|
163
163
|
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
164
|
+
max_tokens: number;
|
|
164
165
|
is_editable: boolean;
|
|
165
166
|
created_at?: number | null | undefined;
|
|
166
167
|
updated_at?: number | null | undefined;
|
|
@@ -176,6 +177,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
176
177
|
} & {
|
|
177
178
|
title: string;
|
|
178
179
|
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
180
|
+
max_tokens: number;
|
|
179
181
|
is_editable: boolean;
|
|
180
182
|
created_at?: number | null | undefined;
|
|
181
183
|
updated_at?: number | null | undefined;
|
|
@@ -191,6 +193,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
191
193
|
} & {
|
|
192
194
|
title: string;
|
|
193
195
|
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
196
|
+
max_tokens: number;
|
|
194
197
|
is_editable: boolean;
|
|
195
198
|
created_at?: number | null | undefined;
|
|
196
199
|
updated_at?: number | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -66,7 +66,7 @@ exports.AgentSchema = new mongoose_1.Schema({
|
|
|
66
66
|
instructions: { type: String, minlength: 1, maxlength: 1000 },
|
|
67
67
|
model: { type: String, enum: types_1.modelsList, required: true },
|
|
68
68
|
temperature: { type: Number, min: 0, max: 1 },
|
|
69
|
-
|
|
69
|
+
max_tokens: { type: Number, min: 1, default: 3000 },
|
|
70
70
|
elevenlabs_voice_id: { type: String },
|
|
71
71
|
message_count_limit: { type: Number, min: 1 },
|
|
72
72
|
is_editable: { type: Boolean, default: false },
|
package/dist/types.d.ts
CHANGED
|
@@ -183,6 +183,7 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
183
183
|
instructions: z.ZodString;
|
|
184
184
|
model: z.ZodEnum<["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "claude-3.7-sonnet"]>;
|
|
185
185
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
186
187
|
elevenlabs_voice_id: z.ZodOptional<z.ZodString>;
|
|
187
188
|
message_count_limit: z.ZodOptional<z.ZodNumber>;
|
|
188
189
|
is_editable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -198,6 +199,7 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
198
199
|
organization_id?: string | undefined;
|
|
199
200
|
description?: string | undefined;
|
|
200
201
|
temperature?: number | undefined;
|
|
202
|
+
max_tokens?: number | undefined;
|
|
201
203
|
elevenlabs_voice_id?: string | undefined;
|
|
202
204
|
message_count_limit?: number | undefined;
|
|
203
205
|
is_editable?: boolean | undefined;
|
|
@@ -211,6 +213,7 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
211
213
|
organization_id?: string | undefined;
|
|
212
214
|
description?: string | undefined;
|
|
213
215
|
temperature?: number | undefined;
|
|
216
|
+
max_tokens?: number | undefined;
|
|
214
217
|
elevenlabs_voice_id?: string | undefined;
|
|
215
218
|
message_count_limit?: number | undefined;
|
|
216
219
|
is_editable?: boolean | undefined;
|
package/dist/types.js
CHANGED
|
@@ -81,10 +81,10 @@ exports.zodAgentSchema = zod_1.z.object({
|
|
|
81
81
|
organization_id: zod_1.z.string().optional(),
|
|
82
82
|
title: zod_1.z.string().min(1).max(100),
|
|
83
83
|
description: zod_1.z.string().optional(),
|
|
84
|
-
instructions: zod_1.z.string().min(1).max(
|
|
84
|
+
instructions: zod_1.z.string().min(1).max(1500),
|
|
85
85
|
model: zod_1.z.enum(exports.modelsList),
|
|
86
86
|
temperature: zod_1.z.number().min(0).max(1).optional(),
|
|
87
|
-
|
|
87
|
+
max_tokens: zod_1.z.number().min(1).optional(),
|
|
88
88
|
elevenlabs_voice_id: zod_1.z.string().optional(),
|
|
89
89
|
message_count_limit: zod_1.z.number().min(1).optional(),
|
|
90
90
|
is_editable: zod_1.z.boolean().optional(),
|
package/index.ts
CHANGED
|
@@ -60,7 +60,7 @@ export const AgentSchema = new Schema(
|
|
|
60
60
|
instructions: { type: String, minlength: 1, maxlength: 1000 },
|
|
61
61
|
model: { type: String, enum: modelsList, required: true },
|
|
62
62
|
temperature: { type: Number, min: 0, max: 1 },
|
|
63
|
-
|
|
63
|
+
max_tokens: { type: Number, min: 1, default: 3000 },
|
|
64
64
|
elevenlabs_voice_id: { type: String },
|
|
65
65
|
message_count_limit: { type: Number, min: 1 },
|
|
66
66
|
is_editable: { type: Boolean, default: false },
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -10,7 +10,7 @@ export const modelsList = [
|
|
|
10
10
|
'gpt-4.1-mini',
|
|
11
11
|
'gpt-4.1-nano',
|
|
12
12
|
'claude-3.7-sonnet',
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
] as const;
|
|
15
15
|
|
|
16
16
|
export const userRoles = ['admin', 'member', 'client'] as const;
|
|
@@ -86,10 +86,10 @@ export const zodAgentSchema = z.object({
|
|
|
86
86
|
organization_id: z.string().optional(),
|
|
87
87
|
title: z.string().min(1).max(100),
|
|
88
88
|
description: z.string().optional(),
|
|
89
|
-
instructions: z.string().min(1).max(
|
|
89
|
+
instructions: z.string().min(1).max(1500),
|
|
90
90
|
model: z.enum(modelsList),
|
|
91
91
|
temperature: z.number().min(0).max(1).optional(),
|
|
92
|
-
|
|
92
|
+
max_tokens: z.number().min(1).optional(),
|
|
93
93
|
elevenlabs_voice_id: z.string().optional(),
|
|
94
94
|
message_count_limit: z.number().min(1).optional(),
|
|
95
95
|
is_editable: z.boolean().optional(),
|