You can add OllamaKit to your Swift project using Swift Package Manager (SPM).
If you are using a Package.swift file, add the following to your dependencies array:
.package(url: "https://github.com/kevinhermawan/OllamaKit.git", .upToNextMajor(from: "5.0.0"))
If you are using Xcode:
- Open your project in Xcode.
- Go to
File -> Swift Packages -> Add Package Dependency... - Enter the URL:
https://github.com/kevinhermawan/OllamaKit.git - Select the version you wish to use (the latest version is recommended).
- Click
Add Package.
dependencies: [
.package(url: "https://github.com/kevinhermawan/OllamaKit.git", .upToNextMajor(from: "5.0.0"))
]