Skip to main content

OpenAIClient

//ellmental/com.theagilemonkeys.ellmental.embeddingsmodel.openai/OpenAIClient

OpenAIClient

@JvmOverloads

fun OpenAIClient(apiKey: String, logging: LoggingConfig = LoggingConfig(), timeout: Timeout = Timeout(socket = 30.seconds), organization: String? = null, headers: Map<String, String> = emptyMap(), host: OpenAIHost = OpenAIHost.OpenAI, proxy: ProxyConfig? = null, retry: RetryStrategy = RetryStrategy()): OpenAI

OpenAI client generator

Wrapper to create an OpenAI client with default parameters for JVM compatibility