[PR #7295] [MERGED] Add Ollama for Swift to the community integrations #12374

Closed
opened 2026-04-12 23:57:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7295
Author: @mattt
Created: 10/21/2024
Status: Merged
Merged: 10/22/2024
Merged by: @jmorganca

Base: mainHead: main


📝 Commits (1)

  • 9192e46 Add Ollama for Swift to the community integrations

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

This PR updates the README by adding a link to a Swift client library I recently published.

I'm using it for a few internal projects, and thought it might be useful to anyone else who's building macOS apps with Ollama.

import Ollama

let response = try await Client.default.chat(
    model: "llama3.2",
    messages: [
        .system("You are a helpful assistant."),
        .user("Tell me a joke about the Swift programming language.")
    ]
)
print(response.message.content)
// "The best part about Swift's interoperability with Objective-C is realizing you now have two languages you don't fully understand."

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/7295 **Author:** [@mattt](https://github.com/mattt) **Created:** 10/21/2024 **Status:** ✅ Merged **Merged:** 10/22/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`9192e46`](https://github.com/ollama/ollama/commit/9192e4630cf081aa44cf0fe900e45e37ac69da9b) Add Ollama for Swift to the community integrations ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description This PR updates the README by adding a link to a [Swift client library](https://github.com/mattt/ollama-swift) I recently published. I'm using it for a few internal projects, and thought it might be useful to anyone else who's building macOS apps with Ollama. ```swift import Ollama let response = try await Client.default.chat( model: "llama3.2", messages: [ .system("You are a helpful assistant."), .user("Tell me a joke about the Swift programming language.") ] ) print(response.message.content) // "The best part about Swift's interoperability with Objective-C is realizing you now have two languages you don't fully understand." ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:57:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#12374