OpenAIResponsesModel
此内容尚不支持你的语言。
Model implementation that uses OpenAI’s Responses API to generate responses.
Implements
Section titled “Implements”Model
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”Model.getResponsegetStreamedResponse()
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.
Implementation of
Section titled “Implementation of”Model.getStreamedResponse