Package-level declarations

Functions

Link copied to clipboard

Sends a chat request and wraps the result in a Result.

inline suspend fun ChatClient.chatCatching(noinline request: ChatRequestBuilder.() -> Unit): Result<ChatResponse>

Sends a chat request using the request DSL and wraps the result in a Result.

inline suspend fun ChatClient.chatCatching(model: String, noinline chat: ChatBuilder.() -> Unit): Result<ChatResponse>

Sends a chat request using the message DSL and wraps the result in a Result.