Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 2.45 KB

README.md

File metadata and controls

67 lines (47 loc) · 2.45 KB

Ollama Chat App

A Flutter-based chat application that allows users to interact with AI language models via Ollama. The app provides a user-friendly interface to start new chat sessions, select different AI models, and specify custom Ollama server URLs.

Features

  • Start New Chats: Begin new conversations with AI assistants easily.
  • Model Selection: Choose from a variety of AI models provided by Ollama.
  • Custom Server URL: Specify a custom Ollama server URL for connecting to different servers.
  • Interactive UI: User-friendly interface with real-time message updates.
  • Streamed Responses: Receive AI responses in a streamed manner for a seamless experience.

Screenshots

Home Screen Home Screen

The home screen where you can input the Ollama URL and select a model.

Chat Screen Chat Screen

The chat interface for interacting with the AI assistant.

Getting Started

Prerequisites

  • Flutter SDK: Make sure you have Flutter installed. You can download it here.
  • Dart SDK: Included with Flutter.
  • Ollama Server: An instance of the Ollama server running and accessible.

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/ollama_chat_app.git
  2. Navigate to the project directory

    flutter pub get
  3. Install dependencies

    flutter pub get
  4. flutter run

    flutter run

Usage

  • Launch the App:Start the application on your emulator or physical device.
  • Enter Ollama URL:On the home screen, input the URL of your Ollama server (e.g., http://example.com:11434).
  • Select Model:Choose the desired AI model from the dropdown menu.
  • Start Chatting:Click on "Start Chat" to begin a conversation.
  • Send Messages:Type your message in the text field and press the send button.
  • Receive Responses:The AI assistant will reply in real-time.button.
  • Start New Chat:Use the refresh icon in the chat screen's app bar to start a new chat session.

License

This project is licensed under the MIT License.