Skip to content

Commit 9bce877

Browse files
committed
feat(chat): native chat->chat path for openai-chat providers (#1467)
Chat-form providers are the majority, so keep the change minimal: when a Chat Completions request routes to an openai-chat target, preserve the Chat wire end-to-end instead of round-tripping through the Responses pipeline. - Resolve the wire after routing (resolveWireProtocolOverride) and take the chat-native path only when adapter is openai-chat and the payload needs no Responses-only features (store/background/ previous_response_id/compaction/hosted tools). - Keep the existing translate-and-replay bridge for every other target so the shared admission/routing/key-pool/retry/usage/logging lifecycle stays on one path. - Wire policy, rate-limit retry, and usage accounting are preserved on the chat-native path; no raw byte relay. Refs #1467
1 parent 872c526 commit 9bce877

1 file changed

Lines changed: 469 additions & 7 deletions

File tree

0 commit comments

Comments
 (0)