[Feature Request]No UI to choose the wire protocol (Chat Completions vs Responses API); connection-linked profiles silently ignore profile-level `api_format`
Do you need to file a feature request?
- [ ] I have searched the existing feature request and this feature request is not already filed.
- [ ] I believe this is a legitimate feature request, not just a question or bug.
Feature Request Description
Title
No UI to choose the wire protocol (Chat Completions vs Responses API); connection-linked profiles silently ignore profile-level api_format
Environment
- DeepTutor 1.7.1 (pip install, self-hosted), macOS, Python 3.11
Summary
For profiles linked to a connection via provider_ref, resolve_profile_provider() overwrites api_format/wire_api from the connection (deeptutor/services/config/provider_links.py, ~L195-196: result[field] = source.get(field) or "auto"). The Settings UI exposes no protocol selector for either profiles or connections, so there is no supported way to force the Responses API.
Why it matters
Reasoning models behind OpenAI-compatible gateways frequently reject tools + reasoning_effort on /v1/chat/completions ("To use function tools, use /v1/responses or set reasoning_effort to 'none'") while also rejecting non-default temperature on the same endpoint. The only working combination is the Responses API with a reasoning effort — but users cannot select it anywhere in the UI. Hand-editing data/user/settings/model_catalog.json is required, and even then the edit must be made on the connections entry rather than the profile, which is undiscoverable (a profile-level api_format is silently overridden).
Steps to reproduce
- In Settings > Language models, add an OpenAI connection + profile for a reasoning model; set a reasoning effort.
- Chat with tools enabled → 400 from
/v1/chat/completionsadvising/v1/responses. - Look for a protocol selector in Settings → none exists.
- Set
api_format: "openai_responses"on the profile inmodel_catalog.json→ still 400, because the connection'sapi_format: "auto"wins during resolution. - Set it on the
connectionsentry instead → works.
Expected behavior
Expose an "API protocol" selector (auto / Chat Completions / Responses) on connections in Settings (and surface that it overrides linked profiles), or at least honor a profile-level api_format when the linked connection leaves it at auto.
Related Module
Dashboard
Use Case
No response
Additional Context
No response
There is a connection-level selector in the current UI. I verified this in Chromium against a real API and a disposable v1.7.2/current-dev installation (60fb3bd): selecting Responses, applying it, and reloading preserved api_format: "openai_responses" on the connection.
The path is:
- Settings → Providers (direct route:
/settings/connections). - Select the provider connection used by the model.
- Set Language-model API protocol → OpenAI Responses.
- Click Apply changes in the bottom settings toolbar. “Save draft” only stages the change.
This control is on the provider connection page, separate from Language models. It offers Auto, OpenAI Chat Completions, and OpenAI Responses for the OpenAI connection I tested. The selector is also present in the v1.7.1 provider page source and protocol component.
Your observation about precedence is correct: linked profiles resolve the protocol from their connection. Changing that connection through the selector avoids editing JSON or setting an ignored profile-level value.
If the selector is missing at /settings/connections, could you share the provider type and how the frontend is started (for example deeptutor start versus a separate frontend build)? That would help distinguish a provider-specific visibility case from a frontend/backend version mismatch. No API key or full model catalog is needed. I verified the settings round trip with a synthetic connection, not a live gateway/model request.
I'd like to take the profile-side half of this: Taz33m already verified the connection-level selector works, but resolve_profile_provider() (provider_links.py) still unconditionally overwrites the profile's own api_format/wire_api with the connection's value (or "auto") — so a profile that explicitly names the Responses API silently loses it. I'll make the precedence explicit: profile's explicit value > connection's > auto, with regression tests for all three orderings.
PR: #2453 pending — profile-side only: resolve_profile_provider() now honors an explicitly-set profile api_format (profile's non-default value > connection's > auto), instead of unconditionally clobbering it with the connection's. Connection-level selector (verified by Taz33m) is untouched. Regression tests for all three orderings.
Verified fixed on the current local dev branch (fa190d2f3d3c), with regression checks.
will be fixed in the next releases!