Skip to content

Commit

Permalink
fix: make options optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Stormix committed May 7, 2023
1 parent 101d07f commit 4a328ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { ComponentType } from '@prisma/client';
import { z } from 'zod';

export const generateOptionsSchema = z.object({
temperature: z.number().min(0).max(1).optional(),
presencePenalty: z.number().min(0).max(1).optional()
temperature: z.number().optional(),
presencePenalty: z.number().optional()
});

export const generateInputSchema = z.object({
Expand Down

1 comment on commit 4a328ca

@vercel
Copy link

@vercel vercel bot commented on 4a328ca May 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.