mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 14:09:36 +08:00
The image-description save gate derived the vision capability from the provider the runtime detects from `base_url`, while the settings picker used the provider the profile declares. A profile that binds `openai` and points the base URL at a local gateway falls in between: the picker offers the model, then PUT /document-parsing rejects it with 400. Both sides now share one rule -- a model's own capability declaration first, then the provider tables -- and the gate reads the picker's own verdict, so the two cannot drift apart again. Refs #2037 Signed-off-by: cgycorey <cgycorey@users.noreply.github.com>