@chinmaymk/aikit / createOpenAIResponses
Function: createOpenAIResponses()
createOpenAIResponses(
options
):OpenAIResponsesProvider
Defined in: factory.ts:117
Creates an OpenAI provider using the Responses API.
Parameters
options
WithApiKey
<OpenAIResponsesOptions
>
Configuration options with required API key
Returns
OpenAI Responses streaming generation provider function
Example
typescript
const openaiResponses = createOpenAIResponses({
apiKey: 'sk-...',
model: 'gpt-4o',
reasoning: { effort: 'high' }
});