Skip to content

Commit 62a13f1

Browse files
andrewheardG.Dev.Ssomsak
authored andcommitted
Add function calling support (google-gemini#116)
1 parent 9c459c8 commit 62a13f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GoogleAI/Chat.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public class Chat {
175175
case let .text(str):
176176
combinedText += str
177177

178-
case .data(mimetype: _, _):
178+
case .data, .functionCall, .functionResponse:
179179
// Don't combine it, just add to the content. If there's any text pending, add that as
180180
// a part.
181181
if !combinedText.isEmpty {

0 commit comments

Comments
 (0)