Skip to content

@chinmaymk/aikit v0.0.40


@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')])
);

Released under the MIT License.