Skip to content

chore(ai): use kotlin 2.2.0#2686

Merged
thatfiredev merged 1 commit into
masterfrom
rpf/update-kotlin-version
Jul 4, 2025
Merged

chore(ai): use kotlin 2.2.0#2686
thatfiredev merged 1 commit into
masterfrom
rpf/update-kotlin-version

Conversation

@thatfiredev
Copy link
Copy Markdown
Member

It seems like dpebot missed this in #2681

The reason why it didn't update the build.gradle.kts file is because that file used the kotlin(...) function instead of id(...).

I need to investigate why it didn't update the TOML as well (see #2681 (comment))

@thatfiredev thatfiredev merged commit db8290d into master Jul 4, 2025
7 checks passed
@sadnanshawon
Copy link
Copy Markdown

val apiKey = BuildConfig.GEMINI_API_KEY
val client = OkHttpClient()

val request = Request.Builder()
.url("https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=$apiKey")
.post(
RequestBody.create(
MediaType.parse("application/json"),
"""{"contents":[{"parts":[{"text":"Hello Gemini"}]}]}"""
)
)
.build()

val response = client.newCall(request).execute()
val responseBody = response.body()?.string()
Log.d("GeminiResponse", responseBody ?: "No response")

@thatfiredev thatfiredev deleted the rpf/update-kotlin-version branch March 4, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants