Commit 0a19b2a
committed
Make provider pricing schema permissive to avoid startup failures
Add .passthrough().nullable() to pricing Zod schemas so that
non-standard pricing encodings (null, extra fields, etc.) from
OpenAI-compatible backends don't cause listSchema.parse to throw
and abort model loading.1 parent ba881b8 commit 0a19b2a
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
0 commit comments