Skip to content

[RFC] Unify custom connections with per-model protocols and capabilities #5673

Closed

Description

@Astro-Han

Problem

I configured one API endpoint serving both GPT models through OpenAI Responses and Claude models through Anthropic Messages.

Maka currently presents these as separate provider choices: “Custom relay (OpenAI Chat)”, “Custom relay (OpenAI Responses)”, and “Custom relay (Anthropic)”. I had to create two connections with the same endpoint and credentials to use the two model protocols through the current setup flow.

Capability configuration is also inconsistent:

  • The Responses connection allows per-model thinking-level declarations. After declaring the verified levels, the composer exposes the selector.
  • The Anthropic connection has no equivalent declaration control. Its model can generate responses, but the composer has no thinking-level selector.
  • A direct Anthropic Messages request with thinking: {"type":"adaptive"} and output_config: {"effort":"high"} succeeded against the same endpoint. This establishes request acceptance, not a measurement of reasoning quality.
  • The endpoint's model list advertises model IDs and protocol hints but does not provide thinking levels.

At main revision b62ca80, isRelayProviderType() includes only the two custom OpenAI types. Both the capability editor and catalog validation use that boundary, excluding Anthropic thinking declarations.

Desired outcome

Provide one “Custom connection” entry point that separates:

  1. Connection identity and access: display name, base URL, credentials, and request customization.
  2. Request protocol: a connection default, with an explicit per-model override when one endpoint serves multiple protocols.
  3. Model configuration: model ID, enabled state, supported thinking controls, modalities, and limits.

A user should be able to configure the example endpoint once and add a Responses model and an Anthropic Messages model beneath it.

Reuse the existing Connection identity, credential binding, and per-model configuration. A new provider entity or parallel configuration system should not be necessary merely to unify the setup flow.

Acceptance criteria

  • One custom connection can execute models using different supported protocols without duplicating credentials.
  • Capability editing and runtime validation use the same resolved per-model protocol and capability information.
  • Thinking controls map to the selected protocol's native request fields, including required thinking mode settings; exposing a selector alone is insufficient.
  • Missing capability information remains unknown and can be explicitly configured. A model name alone does not establish gateway support.
  • Discovery refresh preserves explicit user declarations and model selection.
  • Existing custom connections and Session bindings remain valid, without silent credential rebinding or default changes.
  • Verification covers saving and reloading configuration, switching model protocols, and the actual outgoing thinking parameters.

Alternatives or workarounds

Separate protocol-specific connections work for basic generation but duplicate setup. A fixed request-body overlay may request a particular effort, but does not provide validated per-model selection in the composer.

Adding only an Anthropic-specific checkbox would address the immediate symptom while retaining the fragmented configuration model.

Related: #2318, #2220, and #3852.

Activity

  1. added
    enhancement
    on Sep 24, 2026
  2. added a commit that references this issue on Sep 24, 2026
    c299cc1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions