@@ -63,6 +63,7 @@ let package = Package(
6363 . package ( url: " https://github.com/apple/swift-syntax.git " , branch: " main " ) ,
6464 . package ( url: " https://github.com/GottaGetSwifty/CodableWrappers " , from: " 2.0.7 " ) ,
6565 . package ( url: " https://github.com/krzyzanowskim/STTextView " , from: " 0.8.21 " ) ,
66+ . package ( url: " https://github.com/google/generative-ai-swift " , from: " 0.4.4 " ) ,
6667
6768 // TreeSitter
6869 . package ( url: " https://github.com/intitni/SwiftTreeSitter.git " , branch: " main " ) ,
@@ -130,6 +131,7 @@ let package = Package(
130131 name: " TokenEncoder " ,
131132 dependencies: [
132133 . product( name: " Tiktoken " , package : " Tiktoken " ) ,
134+ . product( name: " GoogleGenerativeAI " , package : " generative-ai-swift " ) ,
133135 ] ,
134136 resources: [
135137 . copy( " Resources/cl100k_base.tiktoken " ) ,
@@ -313,6 +315,7 @@ let package = Package(
313315 " Keychain " ,
314316 . product( name: " JSONRPC " , package : " JSONRPC " ) ,
315317 . product( name: " AsyncAlgorithms " , package : " swift-async-algorithms " ) ,
318+ . product( name: " GoogleGenerativeAI " , package : " generative-ai-swift " ) ,
316319 . product(
317320 name: " ComposableArchitecture " ,
318321 package : " swift-composable-architecture "
0 commit comments