Skip to content

V0116: structured output does not fit

The smallest valid output for this json<T> schema or choice[...] needs more tokens than max allows, so the generation could never succeed.

schema S { name: str<=10, age: int }
model m = "x" { layers: 1, kv_heads: 1, head_dim: 8 }
fn main() { let (c, s) = gen open m max 2 as json<S>
drop c }
error[V0116]: the smallest `S` value needs 19 tokens but max is 2
--> example.veer:3:41
|
3 | fn main() { let (c, s) = gen open m max 2 as json<S>
| ^
= note: token counts use Veer's conservative byte bound
= help: run `veer explain V0116` for details