llama.cpp
057494f9 - server: accept OpenAI video_url content type and data: video URIs (#27921)

Commit
37 days ago
server: accept OpenAI video_url content type and data: video URIs (#27921) The OpenAI chat completions API specifies content part type "video_url" with a {"url": ...} object, and clients typically send data: URIs (e.g. data:video/mp4;base64,...). The llama-server only accepted the non-standard "input_video" type and rejected data: URIs for video (accept_base64_uri=false), so any OpenAI-conformant client failed with "unsupported content[].type" or "Invalid uri format". - accept "video_url" as an alias of "input_video" - read the media object from whichever key was used - allow data: URIs for video (data:video/*), as already done for images
Author
Parents
Loading