Mencoba Respon AI dengan MarkdownText.kt
This commit is contained in:
parent
41a1e8268a
commit
79f7e33a5a
@ -1,5 +1,5 @@
|
|||||||
package com.example.notesai.config
|
package com.example.notesai.config
|
||||||
|
|
||||||
object APIKey {
|
object APIKey {
|
||||||
const val GEMINI_API_KEY = "AIzaSyAUHuVIZwXkl4_T8njUz9hFzRsHWbcXwjM"
|
const val GEMINI_API_KEY = "AIzaSyBzC64RXsNtSERlts_FSd8HXKEpkLdT7-8"
|
||||||
}
|
}
|
||||||
@ -66,7 +66,7 @@ fun AIHelperScreen(
|
|||||||
// Inisialisasi Gemini Model
|
// Inisialisasi Gemini Model
|
||||||
val generativeModel = remember {
|
val generativeModel = remember {
|
||||||
GenerativeModel(
|
GenerativeModel(
|
||||||
modelName = "gemini-2.0-flash-exp",
|
modelName = "gemini-2.5-flash",
|
||||||
apiKey = APIKey.GEMINI_API_KEY,
|
apiKey = APIKey.GEMINI_API_KEY,
|
||||||
generationConfig = generationConfig {
|
generationConfig = generationConfig {
|
||||||
temperature = 0.8f
|
temperature = 0.8f
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user