OpenAIResponsesWSModel
이 콘텐츠는 아직 번역되지 않았습니다.
Model implementation that uses the OpenAI Responses API over a websocket transport.
https://developers.openai.com/api/docs/guides/websocket-mode
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OpenAIResponsesWSModel( client, model, options?): OpenAIResponsesWSModel;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
Section titled “Returns”OpenAIResponsesWSModel
Overrides
Section titled “Overrides”OpenAIResponsesModel.constructor
Methods
Section titled “Methods”close()
Section titled “close()”close(): Promise<void>;Returns
Section titled “Returns”Promise<void>
getResponse()
Section titled “getResponse()”getResponse(request): Promise<ModelResponse>;Get a response from the OpenAI model using the Responses API.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
The request to send to the model. |
Returns
Section titled “Returns”Promise<ModelResponse>
A promise that resolves to the response from the model.
Inherited from
Section titled “Inherited from”OpenAIResponsesModel.getResponse
getStreamedResponse()
Section titled “getStreamedResponse()”getStreamedResponse(request): AsyncIterable<StreamEvent>;Get a streamed response from the OpenAI model using the Responses API.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
The request to send to the model. |
Returns
Section titled “Returns”AsyncIterable<StreamEvent>
An async iterable of the response from the model.