You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
server: /infill ignores invalid prompt arrays and returns success #57
Observed: HTTP 200, 8 evaluated tokens. Controls with prompt:[-1], prompt:[9707], and no prompt all produce the identical formatted prompt and output. /v1/completions with {"model":"x","prompt":[152936],"max_tokens":4} returns 400 Prompt contains invalid tokens.
Cause: the non-string check calls res->error() but does not return. json_value<string> then replaces the array with an empty string and a later response returns success. This confirms broken validation, NOT the upstream claim that out-of-range IDs reach inference. Introducing commit not bisected.
Activity
ServeurpersoCom commentedon Sep 29, 2026
Here's a small fix covering all three checks, could you give it a quick try? If it's good on your side I'll open the PR: ggml-org@501358a