Skip to content

V0117: unbounded string appended to a context

Only strings with a static bound (str<=N) may be appended to a context, otherwise KV memory could not be bounded.

model m = "x" { layers: 1, kv_heads: 1, head_dim: 8 }
fn f(s: str) { let c = open m ++ s
drop c }
error[V0117]: only bounded strings (`str<=N`) can be appended to a context
--> example.veer:2:34
|
2 | fn f(s: str) { let c = open m ++ s
| ^
= help: run `veer explain V0117` for details