@chinmaymk/aikit / openaiResponses
Function: openaiResponses()
openaiResponses(
config
,messages
):AsyncIterable
<StreamChunk
>
Defined in: providers/openai_responses.ts:67
Direct OpenAI Responses function - no configuration step needed
Parameters
config
WithApiKey
<OpenAIResponsesOptions
>
messages
Message
[]
Returns
AsyncIterable
<StreamChunk
>
Example
typescript
const result = await collectDeltas(
openaiResponses({ apiKey: '...', model: 'gpt-4o' }, [userText('Hello')])
);