Skip to content

@chinmaymk/aikit v0.0.40


@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

OpenAIResponsesProvider

OpenAI Responses streaming generation provider function

Example

typescript
const openaiResponses = createOpenAIResponses({
  apiKey: 'sk-...',
  model: 'gpt-4o',
  reasoning: { effort: 'high' }
});

Released under the MIT License.