@chinmaymk/aikit / createOpenAI
Function: createOpenAI()
createOpenAI(
options
):OpenAIProvider
Defined in: factory.ts:60
Creates an OpenAI provider using the Chat Completions API.
Parameters
options
Configuration options with required API key
Returns
OpenAI streaming generation provider function
Example
typescript
const openai = createOpenAI({
apiKey: 'sk-...',
model: 'gpt-4o',
temperature: 0.7
});