Open AICompatible
fun OpenAICompatible(client: HttpClient, settings: OpenAICompatibleProviderSettings, json: Json = aiSdkJson): OpenAICompatibleProvider(source)
Builds a provider for OpenAI-shaped HTTP APIs.
The caller owns the Ktor HttpClient and its engine, timeouts, TLS/proxy settings, and lifecycle. settings supplies endpoint, auth, usage mapping, structured-output support, and provider-specific request/response transforms. Use OpenAICompatibleProvider.chatModel for chat-completions style models or OpenAICompatibleProvider.completionModel for legacy completions.
Since
0.3.0-beta01