OpenAI

fun Chat.Companion.OpenAI(apiKey: ApiKey, http: HttpHandler = JavaHttpClient(), org: OpenAIApi.Org? = null): Chat(source)
fun StreamingChat.Companion.OpenAI(apiKey: ApiKey, http: HttpHandler = JavaHttpClient(), org: OpenAIApi.Org? = null): StreamingChat(source)

OpenAI Chat interface for using with the real OpenAI API endpoints


fun Chat.Companion.OpenAI(openAICompatibleClient: OpenAICompatibleClient): Chat(source)
fun StreamingChat.Companion.OpenAI(openAICompatibleClient: OpenAICompatibleClient): StreamingChat(source)

Chat interface for any OpenAI-compatible client