Skip to content

Commit fdf4467

Browse files
committed
Mark google AI models as function calling unsupported
1 parent 1eebba0 commit fdf4467

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Tool/Sources/AIModel/ChatModel.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ public struct ChatModel: Codable, Equatable, Identifiable {
1414
self.name = name
1515
self.format = format
1616
self.info = info
17+
18+
if format == .googleAI {
19+
self.info.supportsFunctionCalling = false
20+
}
1721
}
1822

1923
public enum Format: String, Codable, Equatable, CaseIterable {

0 commit comments

Comments
 (0)