Skip to content

Commit

Permalink
Merge pull request #11 from vyfor/dev
Browse files Browse the repository at this point in the history
feat: Provide a default empty lambda for `GroqClient.config`
  • Loading branch information
vyfor authored Nov 10, 2024
2 parents 360e2da + bee3ffe commit b3f2cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/io/github/vyfor/groqkt/GroqClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import kotlinx.serialization.json.buildJsonArray
@Suppress("MemberVisibilityCanBePrivate")
class GroqClient(
apiKey: String,
config: GroqConfigBuilder.() -> Unit,
config: GroqConfigBuilder.() -> Unit = {},
) : AutoCloseable {
private val config = GroqConfigBuilder(apiKey).apply(config).build()

Expand Down

0 comments on commit b3f2cb2

Please sign in to comment.