On this page

0214. OpenAI-compatible chat adapter

Context

Decision

Amends 0108: OpenAI tool-call argument fragments are buffered in ToolArguments and released only at the finish_reason chunk. Amends 0112: plugins/openai_chat is a second fixture-tested provider adapter, with its golden suites under plugins/openai_chat/tests/. Amends 0212: defines the OpenAI/OpenRouter/DeepSeek usage category mapping and carries provider cost as option<str> outside TokenUsage.

Alternatives considered

Consequences