[fix review issue]: update setting name

This commit is contained in:
duanfuxiang
2025-02-17 19:07:33 +08:00
parent 173f2b7fa5
commit dc520535fc
22 changed files with 721 additions and 1269 deletions

View File

@@ -50,8 +50,8 @@ export const modelOptionsSchema = z.object({
export const fewShotExampleSchema = z.object({
// TODO: figure out how to make this compatible with the context enum and its namespace.
context: z.enum(["Text", "Heading", "BlockQuotes", "UnorderedList", "NumberedList", "CodeBlock", "MathBlock", "TaskList"]),
input: z.string().min(3, { message: "The Input must be at least 3 characters long" }),
answer: z.string().min(3, { message: "The Answer must be at least 3 characters long" }),
input: z.string().min(3, { message: "The input must be at least 3 characters long" }),
answer: z.string().min(3, { message: "The answer must be at least 3 characters long" }),
}).strict();
export type FewShotExample = z.infer<typeof fewShotExampleSchema>;