Commit 5acd13a
Migrate to Zod 4
Single-arg z.record(z.number()) -> z.record(z.string(), z.number()) in
templates.ts (also fixes the choice_scores Record<number> inference in llm.ts),
and replace the zod-4-incompatible zod-to-json-schema with native
z.toJSONSchema in ragas.ts. Package typechecks cleanly under Zod 4.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent f861688 commit 5acd13a
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | 112 | | |
114 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments