nsarrazin HF Staff commited on
Commit
8bd5344
·
1 Parent(s): 4dd4f43

fix: remove accessToken min length for llama.cpp endpoint

Browse files
src/lib/server/endpoints/llamacpp/endpointLlamacpp.ts CHANGED
@@ -11,10 +11,7 @@ export const endpointLlamacppParametersSchema = z.object({
11
  type: z.literal("llamacpp"),
12
  url: z.string().url().default("http://127.0.0.1:8080"), // legacy, feel free to remove in breaking change update
13
  baseURL: z.string().url().optional(),
14
- accessToken: z
15
- .string()
16
- .min(1)
17
- .default(env.HF_TOKEN ?? env.HF_ACCESS_TOKEN),
18
  });
19
 
20
  export function endpointLlamacpp(
 
11
  type: z.literal("llamacpp"),
12
  url: z.string().url().default("http://127.0.0.1:8080"), // legacy, feel free to remove in breaking change update
13
  baseURL: z.string().url().optional(),
14
+ accessToken: z.string().default(env.HF_TOKEN ?? env.HF_ACCESS_TOKEN),
 
 
 
15
  });
16
 
17
  export function endpointLlamacpp(