Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1// @ts-ignore TS61332import { expect, test } from "vitest";3 4import * as z from "zod/v3";5 6const description = "a description";7 8test("passing `description` to schema should add a description", () => {9 expect(z.string({ description }).description).toEqual(description);10 expect(z.number({ description }).description).toEqual(description);11 expect(z.boolean({ description }).description).toEqual(description);12});13 14test("`.describe` should add a description", () => {15 expect(z.string().describe(description).description).toEqual(description);16 expect(z.number().describe(description).description).toEqual(description);17 expect(z.boolean().describe(description).description).toEqual(description);18});19 20test("description should carry over to chained schemas", () => {21 const schema = z.string({ description });22 expect(schema.description).toEqual(description);23 expect(schema.optional().description).toEqual(description);24 expect(schema.optional().nullable().default("default").description).toEqual(description);25});26 27test("description should not carry over to chained array schema", () => {28 const schema = z.string().describe(description);29 30 expect(schema.description).toEqual(description);31 expect(schema.array().description).toEqual(undefined);32 expect(z.array(schema).description).toEqual(undefined);33});34 