OpenAIResponsesModel
이 콘텐츠는 아직 번역되지 않았습니다.
Model implementation that uses OpenAI’s Responses API to generate responses.
Extended by
Section titled “Extended by”Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OpenAIResponsesModel(client, model): OpenAIResponsesModel;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”OpenAIResponsesModel
Methods
Section titled “Methods”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.
Implementation of
Section titled “Implementation of”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.