Ollama-SwiftUI

Ollama-SwiftUI

User Interface made for Ollama.ai using Swift

Stars: 217

Visit
 screenshot

Ollama-SwiftUI is a user-friendly interface for Ollama.ai created in Swift. It allows seamless chatting with local Large Language Models on Mac. Users can change models mid-conversation, restart conversations, send system prompts, and use multimodal models with image + text. The app supports managing models, including downloading, deleting, and duplicating them. It offers light and dark mode, multiple conversation tabs, and a localized interface in English and Arabic.

README:

Ollama-SwiftUI

License: MIT

A user-friendly interface for https://ollama.ai created in Swift. This application is not directly affiliated with Ollama.ai

This app requires Ollama to be installed and online to function. Install Ollama: https://ollama.ai

Table of Content

  1. Introduction
  2. Changelog
  3. Features
  4. Getting Started
  5. Frequently Asked Questions
  6. Dark Mode showcase
  7. Feedback and Contributions
  8. Contribution Hall of Fame

Introduction

A user-friendly interface for Ollama AI created in Swift. This application is not directly affiliated with Ollama.ai. It allows you to chat seamlessly with Large Language models downloaded to your mac.

This app requires Ollama to be installed and online to function. Install Ollama: https://ollama.ai Chat dialogue example

Features

  1. Chatting with local Large Language Models.
  2. Ability to change model mid conversation.
  3. Restart Conversation at anytime.
  4. [NEW] Now supports sending system prompt
  5. [NEW] Now supports multimodal models with image + text.
  6. New Tabs for different conversations.
  7. Ability to download models using the GUI (Check https://ollama.ai/library for list of model names to download)
  8. Ability to delete models
  9. Ability to duplicate models
  10. Light and Dark Mode
  11. Localizable interface. Currently Localized in: English and Arabic

SystemPrompt ImagePromptInput ImagePromptChat Manage Models example

Getting Started:

  1. Install Ollama ( https://ollama.ai )
  2. Open Ollama
  3. Run Ollama Swift (Note: If opening Ollama Swift starts the settings page, open a new window using Command + N)
  4. Download your first model by going into Manage Models
    • Check possible models to download on: https://ollama.ai/models
    • Copy and paste the name and press on the download button
  5. Select the model from the dropdown in the main page to start your conversation
  6. Write your prompt and start the conversation!

Frequently Asked Questions:

1. I am getting a Server is unreachable error

  • You need to download and install https://Ollama.ai and it must be running in the background for this interface to work.

2. How to change the target IP and port?

  • You can modify the IP address and port in the settings. Ollama SwiftUI > Preferences

3. I am getting "Cannot Be Opened Because the Developer Cannot be Verified" error when trying to open the app

  • To fix this go to your macos System Settings > Privacy and Security > Allow Applications downloaded from > App Store and Identified Developer and you will find a button saying Open Anyway
  • This is completely normal. Open source applications are often not submitted to Apple for code review. You can read more about it here. This does not mean that the application is not safe. In fact, this is the beauty of open source. You can verify it yourself.

4. I would like a new feature X

  • Feel free to create a suggestion by creating a new issue in the repo, or emailing me [email protected]
  • This is a passion project so it will not be perfect and since I am doing it on my own time, I will try my best to get to it as soon as possible.

5. I found bug X

  • Feel free to create a bug report by creating a new issue in the repo, or emailing me [email protected]
  • This is a passion project so it will not be perfect and since I am doing it on my own time, I will try my best to get to it as soon as possible.

6. I would like to contribute to the project

  • Please do so! It is amazing when contributing to open-source projects. Create a pull-request and I will try to review it as soon as possible.

7. Are there any system requirements?

  • This is a very simple light-weight user interface. As long as you can run https://ollama.ai locally, then this application should work as well.

8. What keyboard shortcuts are supported?

  • command + return : Send a message
  • command + "r" : Refresh connection to server
  • command + "n" : Start a new window
  • command + "t" : Open a new tab
  • command + "," : Open settings

Dark Mode also available!

Chat dialogue example darkmode Chat dialogue example darkmode

Feedback and Contributions:

For bugs and feedback, please create a new issue or email [email protected] Feel free to contribute by creating a Pull request and the best effort will be done to review and merge.

Contributors Hall of Fame:

@HiRoS-neko @Tooflex @chryoung

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for Ollama-SwiftUI

Similar Open Source Tools

For similar tasks

For similar jobs