From 10d7a5a21242581c46cc45bcb39131e4061920a0 Mon Sep 17 00:00:00 2001 From: Florian Zimmermeister Date: Wed, 14 Feb 2024 12:18:16 +0100 Subject: [PATCH] Make lorax openai endpoint working (#755) make base model for lorax inference working Co-authored-by: Nathan Sarrazin --- src/lib/server/models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/server/models.ts b/src/lib/server/models.ts index a500c49755a..6d5aca3b1c0 100644 --- a/src/lib/server/models.ts +++ b/src/lib/server/models.ts @@ -22,7 +22,7 @@ const modelConfig = z.object({ /** Used as an identifier in DB */ id: z.string().optional(), /** Used to link to the model page, and for inference */ - name: z.string().min(1), + name: z.string().default(""), displayName: z.string().min(1).optional(), description: z.string().min(1).optional(), websiteUrl: z.string().url().optional(),