File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
firebase-ai/src/main/kotlin/com/google/firebase/ai Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments