Skip to content

chore(ai): use kotlin 2.2.0 #2686

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2025
Merged

Conversation

thatfiredev
Copy link
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

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")

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