@purpleschool/gptbot 0.14.9-stage-2 → 0.14.10-stage-2

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.
@@ -118,7 +118,7 @@ var AnthropicMessagesCommand;
118
118
  AnthropicMessagesCommand.BodySchema = zod_1.z
119
119
  .object({
120
120
  model: zod_1.z.string(),
121
- max_tokens: zod_1.z.number().int().positive(),
121
+ max_tokens: zod_1.z.number().int().positive().optional(),
122
122
  messages: zod_1.z.array(exports.AnthropicMessageSchema).min(1),
123
123
  system: zod_1.z.union([zod_1.z.string(), zod_1.z.array(exports.AnthropicSystemContentBlockSchema)]).optional(),
124
124
  stream: zod_1.z.boolean().optional(),
@@ -134,7 +134,7 @@ export namespace AnthropicMessagesCommand {
134
134
  export const BodySchema = z
135
135
  .object({
136
136
  model: z.string(),
137
- max_tokens: z.number().int().positive(),
137
+ max_tokens: z.number().int().positive().optional(),
138
138
  messages: z.array(AnthropicMessageSchema).min(1),
139
139
  system: z.union([z.string(), z.array(AnthropicSystemContentBlockSchema)]).optional(),
140
140
  stream: z.boolean().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.14.9-stage-2",
3
+ "version": "0.14.10-stage-2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",