Pixir.Provider.Compact (pixir v0.1.14)

Copy Markdown View Source

Distinct standalone compact client for POST /responses/compact (ADR 0040 / #522-C).

This is not stream/2. Tests inject transport:. store: false stays.

Overlay / compact_threshold (D) is a separate gate. chatgpt_codex Turns still send compact_threshold; standalone C does not POST to the Codex /compact 404 host. Official POST /responses/compact is only https://api.openai.com/v1/responses/compact.

Summary

Functions

Standalone C host classification. Independent of overlay / D.

True only when standalone POST /responses/compact exists on this host.

Functions

responses_host(resolved)

@spec responses_host(
  Pixir.Providers.ResolvedProviderRequest.t()
  | Pixir.Providers.ResponsesBackend.t()
  | term()
) :: :chatgpt_codex | :official_responses | :other

Standalone C host classification. Independent of overlay / D.

:chatgpt_codex is the Codex 404 host. :official_responses is the documented api.openai.com compact route. Do not invent another Codex URL.

standalone_supported?(resolved)

@spec standalone_supported?(Pixir.Providers.ResolvedProviderRequest.t() | term()) ::
  boolean()

True only when standalone POST /responses/compact exists on this host.