Skip to content

Commit 6956763

Browse files
committed
gemini is not the best formatter
1 parent f9420e9 commit 6956763

File tree

1 file changed

+4
-4
lines changed
  • firebase-ai/src/main/kotlin/com/google/firebase/ai

1 file changed

+4
-4
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/Chat.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public class Chat(
6666
prompt.assertComesFromUser()
6767
attemptLock()
6868
try {
69-
val fullPrompt = history + prompt
70-
val response = model.generateContent(fullPrompt.first(), *fullPrompt.drop(1).toTypedArray())
69+
val fullPrompt = history + prompt
70+
val response = model.generateContent(fullPrompt.first(), *fullPrompt.drop(1).toTypedArray())
7171
history.add(prompt)
7272
history.add(response.candidates.first().content)
7373
return response
@@ -128,8 +128,8 @@ val response = model.generateContent(fullPrompt.first(), *fullPrompt.drop(1).toT
128128
prompt.assertComesFromUser()
129129
attemptLock()
130130

131-
val fullPrompt = history + prompt
132-
val flow = model.generateContentStream(fullPrompt.first(), *fullPrompt.drop(1).toTypedArray())
131+
val fullPrompt = history + prompt
132+
val flow = model.generateContentStream(fullPrompt.first(), *fullPrompt.drop(1).toTypedArray())
133133
val bitmaps = LinkedList<Bitmap>()
134134
val inlineDataParts = LinkedList<InlineDataPart>()
135135
val text = StringBuilder()

0 commit comments

Comments
 (0)