DocsRuntimellm-providersCreateOpenAIClient
Package: @hexos/runtime

Creates an OpenAI client instance for LLM API communication.

Initializes the OpenAI SDK client using the OPENAI_API_KEY environment variable. The client is used by the OpenAI provider to make chat completion requests.

function createOpenAIClient(): OpenAI