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
flm serve terminates in case of incorrect input instead of returning a response with an error #498
POST /v1/chat/completions
Accept: application/json
Content-Type: application/json
Content-Length: 908
User-Agent: OpenAI/2.10.0 (.NET 10.0.6; Microsoft Windows 10.0.26200)
Authorization: flm
{"messages":[{"role":"system","content":"You are a photo gallery assistant. You can exclusively generate descriptions of photographs or drawings with tags. The description must be in Russian language very detailed and contain the theme and style of the photograph or drawing, ongoing actions, main characters or objects. The description must include tags - preferably single words or at most phrases of maximum three words, which serve for searching the photograph or drawing. The list of tags must include, but not be limited to style, theme, action, characters and objects. The description must be in json format: {\"description\": \"description\", \"tags\": [\"tag1\", \"tag2\"] }. Do not use formatting or code blocks, only pure json."},{"role":"user","content":[{"type":"text","text":"Generate description."},{"type":"image_url","image_url":{"url":"data:image/jpeg;base64,"}}]}],"model":"gemma4-it:e2b"}
@antrv Thanks for reporting this. Yeah, the server shouldn't terminate on invalid input. We'll improve the error handling to return a proper response instead.
changed the title [-]FLM server crashes if chat input contains empty image[/-][+]flm serve terminates in case of incorrect input instead of returning a response with an error[/+]on Apr 18, 2026
Activity
twflm commentedon Apr 16, 2026
was not able to reproduce it. Can you provide more info?
antrv commentedon Apr 17, 2026
here is the exact request
antrv commentedon Apr 17, 2026
Also If I do a request with audio instead of image (in
image_urlfield),flm serveterminates with error:I think flm must return some error response, and keep serving the requests instead of termination.
antrv commentedon Apr 17, 2026
I would rename the title of the issue to
flm serve terminates in case of incorrect input instead of returning a response with an errorZaneNi commentedon Apr 18, 2026
@antrv Thanks for reporting this. Yeah, the server shouldn't terminate on invalid input. We'll improve the error handling to return a proper response instead.
Renaming the issue title also makes sense.
[-]FLM server crashes if chat input contains empty image[/-][+]flm serve terminates in case of incorrect input instead of returning a response with an error[/+]ZaneNi commentedon Apr 21, 2026
@antrv Please take a look at this PR #507 and try the artifacts provided there.
ZaneNi commentedon May 10, 2026
Closing this issue. Feel free to reopen it if the issue persists.