Files
Athena-Deck/RESPONSES_COMPATIBILITY.md
T

3.4 KiB

Optional Responses compatibility

In Settings → API, enable Responses-API aktivieren. The default is off. The setting can change while the endpoint is running. Disabling rejects new Responses requests; already admitted requests finish normally. Existing Chat Completions requests and profiles retain their behavior.

Enabled: POST /v1/responses on the existing API port and with the existing Bearer token. The request uses the same enabled Chat profiles, worker, GPU scheduler, slot accounting and network access policy as /v1/chat/completions. There is no additional service, listener, token store or model runtime.

GET /v1/capabilities reports the switch and boundaries. The setting is stored as responses_compat in endpoint.json and included in encrypted backup/restore. Older settings and backups default to disabled.

Supported subset

  • Stateless requests with complete replayed input, string or message input.
  • Text replies, incremental SSE, reasoning text and usage when supplied upstream.
  • Function tools, tool namespaces, matching call IDs and tool-result replay.
  • Custom/freeform tools translated to a function with a string input property; freeform decoding grammars are not enforced by this conversion.
  • Embedded image input forwarded to the existing Vision validation and projector. This is not a qualification of every model's Vision implementation.
  • Client sampling values and explicitly requested output limits are forwarded; compatibility does not add an output-token cap. Profile defaults apply normally.

System/developer updates are concatenated in chronological order into one leading system message. This accommodates Qwen templates rejecting later system messages (System message must be at the beginning). This normalization only applies to Responses requests, not ordinary Chat Completions traffic.

Unsupported: stored response retrieval, previous_response_id, WebSocket continuation, hosted OpenAI tools, automatic truncation, structured output formats and multimodal generation. Unsupported semantics return an actionable error rather than silently dropping them. No extra model capability is created by this adapter. All existing endpoint size, timeout and Vision constraints still apply.

ChatGPT local client

Use an isolated test profile first. Provider example:

model = "<enabled Athena API ID>"
model_provider = "athena"
web_search = "disabled"

[features]
enable_request_compression = false

[model_providers.athena]
name = "Athena Deck"
base_url = "http://<Athena address>:8120/v1"
wire_api = "responses"
env_key = "ATHENA_API_TOKEN"
requires_openai_auth = false
supports_websockets = false

Provide the token via the client's environment/secret mechanism, not Git or TOML. Supply a custom model catalog matching Athena's IDs, per-slot contexts and actual capabilities. The model catalog is client metadata and is not replaced by this server adapter. Cloud ChatGPT capabilities are not routed through this API.

After switching the client directly to Athena, qualify text, streaming, a harmless tool loop and a follow-up before stopping the old local adapter. Do not assume a successful text reply establishes every desktop feature.

Official references: Custom gateway setup, Required Responses behavior.

Tests: python3 -m unittest test_responses_compat test_endpoint test_api_compat test_backup.