openai
Version:
The official TypeScript library for the OpenAI API
13 lines • 683 B
TypeScript
import * as WS from 'ws';
import { NodeWebSocket } from "../../internal/ws-adapter-node.js";
import { ResponsesWSBase, type ResponsesWSBaseOptions } from "./ws-base.js";
import { OpenAI } from "../../client.js";
export type { ResponsesWSReconnectOptions } from "./ws-base.js";
export interface ResponsesWSClientOptions extends WS.ClientOptions, ResponsesWSBaseOptions {
}
export declare class ResponsesWS extends ResponsesWSBase<NodeWebSocket> {
private _wsOptions;
constructor(client: OpenAI, options?: ResponsesWSClientOptions | null | undefined);
protected _createSocket(url: URL, authHeaders: Record<string, string>): NodeWebSocket;
}
//# sourceMappingURL=ws.d.ts.map