Skip to content

Interface: OpenAiHttpTransport ​

Defined in: openai/src/driver/openai-http-transport.ts:10

Injectable HTTP transport port for dispatching OpenAI /v1/responses requests.

Allows OpenAiModelDriver to execute against either the production fetch transport or deterministic recorded transport fixtures in unit and integration tests.

Methods ​

sendResponsesRequest() ​

ts
sendResponsesRequest(request): Promise<OpenAiHttpResponse>;

Defined in: openai/src/driver/openai-http-transport.ts:23

Sends a single /v1/responses POST request to the OpenAI Responses API and returns the parsed response.

Implementations must honor request.signal and return status 429 with resetAtMs rather than swallowing rate-limit responses so PoolManager can fail over across seats.

Parameters ​

ParameterTypeDescription
requestOpenAiHttpRequestWire-formatted OpenAI Responses API request.

Returns ​

Promise<OpenAiHttpResponse>

HTTP status code, response body, and optional rate-limit reset timestamp.

Throws ​

If request.signal is aborted or an unrecoverable transport error occurs.

Released under the MIT License.