├── .github └── workflows │ ├── code-quality.yml │ └── deploy-docs.yml ├── .gitignore ├── .swiftpm └── configuration │ └── Package.resolved ├── CHANGELOG.md ├── LICENSE ├── Package.resolved ├── Package.swift ├── Package@swift-5.9.swift ├── Playground ├── OKPlayground.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── OKPlayground │ ├── OKPlaygroundApp.swift │ ├── Preview Content │ └── Preview Assets.xcassets │ │ └── Contents.json │ ├── Resources │ └── Assets.xcassets │ │ ├── AccentColor.colorset │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ └── Contents.json │ │ └── Contents.json │ ├── ViewModels │ └── ViewModel.swift │ └── Views │ ├── AppView.swift │ ├── ChatView.swift │ ├── ChatWithFormatView.swift │ ├── ChatWithToolsView.swift │ ├── CopyModelView.swift │ ├── DeleteModelView.swift │ ├── EmbeddingsView.swift │ ├── GenerateView.swift │ ├── ModelInfoView.swift │ └── ModelListView.swift ├── README.md ├── Sources └── OllamaKit │ ├── Documentation.docc │ └── Documentation.md │ ├── OllamaKit+Chat.swift │ ├── OllamaKit+CopyModel.swift │ ├── OllamaKit+DeleteModel.swift │ ├── OllamaKit+Embeddings.swift │ ├── OllamaKit+Generate.swift │ ├── OllamaKit+ModelInfo.swift │ ├── OllamaKit+Models.swift │ ├── OllamaKit+PullModel.swift │ ├── OllamaKit+Reachable.swift │ ├── OllamaKit.swift │ ├── RequestData │ ├── Completion │ │ └── OKCompletionOptions.swift │ ├── OKChatRequestData.swift │ ├── OKCopyModelRequestData.swift │ ├── OKDeleteModelRequestData.swift │ ├── OKEmbeddingsRequestData.swift │ ├── OKGenerateRequestData.swift │ ├── OKModelInfoRequestData.swift │ └── OKPullModelRequestData.swift │ ├── Responses │ ├── Completion │ │ └── OKCompletionResponse.swift │ ├── OKChatResponse.swift │ ├── OKEmbeddingsResponse.swift │ ├── OKGenerateResponse.swift │ ├── OKModelInfoResponse.swift │ ├── OKModelResponse.swift │ └── OKPullModelResponse.swift │ └── Utils │ ├── JSONDecoder+Default.swift │ ├── JSONEncoder+Default.swift │ ├── OKHTTPClient.swift │ ├── OKJSONValue.swift │ ├── OKRouter.swift │ └── StreamingDelegate.swift └── Tests └── OllamaKitTests └── OllamaKitTests.swift /.github/workflows/code-quality.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/.github/workflows/code-quality.yml -------------------------------------------------------------------------------- /.github/workflows/deploy-docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/.github/workflows/deploy-docs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/.gitignore -------------------------------------------------------------------------------- /.swiftpm/configuration/Package.resolved: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/.swiftpm/configuration/Package.resolved -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/LICENSE -------------------------------------------------------------------------------- /Package.resolved: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Package.resolved -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Package.swift -------------------------------------------------------------------------------- /Package@swift-5.9.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Package@swift-5.9.swift -------------------------------------------------------------------------------- /Playground/OKPlayground.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /Playground/OKPlayground.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground.xcodeproj/project.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /Playground/OKPlayground.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist -------------------------------------------------------------------------------- /Playground/OKPlayground/OKPlaygroundApp.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/OKPlaygroundApp.swift -------------------------------------------------------------------------------- /Playground/OKPlayground/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Preview Content/Preview Assets.xcassets/Contents.json -------------------------------------------------------------------------------- /Playground/OKPlayground/Resources/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Resources/Assets.xcassets/AccentColor.colorset/Contents.json -------------------------------------------------------------------------------- /Playground/OKPlayground/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /Playground/OKPlayground/Resources/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Resources/Assets.xcassets/Contents.json -------------------------------------------------------------------------------- /Playground/OKPlayground/ViewModels/ViewModel.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/ViewModels/ViewModel.swift -------------------------------------------------------------------------------- /Playground/OKPlayground/Views/AppView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Views/AppView.swift -------------------------------------------------------------------------------- /Playground/OKPlayground/Views/ChatView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Views/ChatView.swift -------------------------------------------------------------------------------- /Playground/OKPlayground/Views/ChatWithFormatView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Views/ChatWithFormatView.swift -------------------------------------------------------------------------------- /Playground/OKPlayground/Views/ChatWithToolsView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Views/ChatWithToolsView.swift -------------------------------------------------------------------------------- /Playground/OKPlayground/Views/CopyModelView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Views/CopyModelView.swift -------------------------------------------------------------------------------- /Playground/OKPlayground/Views/DeleteModelView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Views/DeleteModelView.swift -------------------------------------------------------------------------------- /Playground/OKPlayground/Views/EmbeddingsView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Views/EmbeddingsView.swift -------------------------------------------------------------------------------- /Playground/OKPlayground/Views/GenerateView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Views/GenerateView.swift -------------------------------------------------------------------------------- /Playground/OKPlayground/Views/ModelInfoView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Views/ModelInfoView.swift -------------------------------------------------------------------------------- /Playground/OKPlayground/Views/ModelListView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Playground/OKPlayground/Views/ModelListView.swift -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/README.md -------------------------------------------------------------------------------- /Sources/OllamaKit/Documentation.docc/Documentation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Documentation.docc/Documentation.md -------------------------------------------------------------------------------- /Sources/OllamaKit/OllamaKit+Chat.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/OllamaKit+Chat.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/OllamaKit+CopyModel.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/OllamaKit+CopyModel.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/OllamaKit+DeleteModel.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/OllamaKit+DeleteModel.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/OllamaKit+Embeddings.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/OllamaKit+Embeddings.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/OllamaKit+Generate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/OllamaKit+Generate.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/OllamaKit+ModelInfo.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/OllamaKit+ModelInfo.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/OllamaKit+Models.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/OllamaKit+Models.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/OllamaKit+PullModel.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/OllamaKit+PullModel.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/OllamaKit+Reachable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/OllamaKit+Reachable.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/OllamaKit.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/OllamaKit.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/RequestData/Completion/OKCompletionOptions.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/RequestData/Completion/OKCompletionOptions.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/RequestData/OKChatRequestData.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/RequestData/OKChatRequestData.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/RequestData/OKCopyModelRequestData.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/RequestData/OKCopyModelRequestData.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/RequestData/OKDeleteModelRequestData.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/RequestData/OKDeleteModelRequestData.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/RequestData/OKEmbeddingsRequestData.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/RequestData/OKEmbeddingsRequestData.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/RequestData/OKGenerateRequestData.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/RequestData/OKGenerateRequestData.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/RequestData/OKModelInfoRequestData.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/RequestData/OKModelInfoRequestData.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/RequestData/OKPullModelRequestData.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/RequestData/OKPullModelRequestData.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Responses/Completion/OKCompletionResponse.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Responses/Completion/OKCompletionResponse.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Responses/OKChatResponse.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Responses/OKChatResponse.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Responses/OKEmbeddingsResponse.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Responses/OKEmbeddingsResponse.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Responses/OKGenerateResponse.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Responses/OKGenerateResponse.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Responses/OKModelInfoResponse.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Responses/OKModelInfoResponse.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Responses/OKModelResponse.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Responses/OKModelResponse.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Responses/OKPullModelResponse.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Responses/OKPullModelResponse.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Utils/JSONDecoder+Default.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Utils/JSONDecoder+Default.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Utils/JSONEncoder+Default.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Utils/JSONEncoder+Default.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Utils/OKHTTPClient.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Utils/OKHTTPClient.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Utils/OKJSONValue.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Utils/OKJSONValue.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Utils/OKRouter.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Utils/OKRouter.swift -------------------------------------------------------------------------------- /Sources/OllamaKit/Utils/StreamingDelegate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Sources/OllamaKit/Utils/StreamingDelegate.swift -------------------------------------------------------------------------------- /Tests/OllamaKitTests/OllamaKitTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/OllamaKit/HEAD/Tests/OllamaKitTests/OllamaKitTests.swift --------------------------------------------------------------------------------