Skip to content

server: advertise loaded vision input capability - #940

Open
apetersson wants to merge 1 commit into
antirez:mainfrom
apetersson:server-model-input-metadata
Open

server: advertise loaded vision input capability#940
apetersson wants to merge 1 commit into
antirez:mainfrom
apetersson:server-model-input-metadata

Conversation

@apetersson

@apetersson apetersson commented Sep 1, 2026

Copy link
Copy Markdown

Motivation

Clients should be able to discover whether the currently loaded model accepts images instead of treating every DS4 model as text-only.

Summary

  • add an input field to /v1/models entries
  • advertise ["text", "image"] only when the loaded engine has vision
  • advertise ["text"] for text-only engines
  • cover both cases in the server metadata regression test

This lets OpenAI-compatible clients discover image support from the model endpoint instead of assuming the server is text-only.

Testing

  • make -j ds4-server ds4_test
  • ./ds4_test --server
  • git diff --check upstream/main...HEAD

@apetersson
apetersson marked this pull request as ready for review September 1, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant