Skip to content

🌟 A console chat client for Ollama, powered by .NET 9 and Semantic Kernel πŸ€–. Enjoy natural conversations with advanced AI models, real-time streaming responses πŸ”„, vibrant interface 🎨, full chat history πŸ“, and seamless LLM integration πŸš€. Built for simplicity, reliability, and smart interactions πŸ’‘.

License

Notifications You must be signed in to change notification settings

sundog358/OllamaExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

οΏ½οΏ½ Ollama Chat Client by Sun & Rain Works

A modern console-based chat client for Ollama, built with .NET 9 and Semantic Kernel. Experience natural conversations with advanced AI models through a sleek command-line interface.

🌟 Key Features

  • πŸ”„ Real-time streaming responses with token-by-token output
  • 🎨 Rich colored console interface for enhanced readability
  • πŸ“ Intelligent markdown code block handling
  • πŸ”Œ Seamless integration with Ollama API
  • πŸ›‘οΈ Robust error handling and graceful degradation
  • 🧠 Powered by Microsoft's Semantic Kernel
  • πŸ’¬ Full chat history support
  • 🎯 Support for multiple LLM models

πŸš€ Getting Started

Prerequisites

  • .NET 9.0
  • Ollama
  • Llama model installed: bash ollama pull llama3:latest

πŸ› οΈ Quick Start

  1. Clone and navigate: bash git clone https://github.com/sunandrain/ollama-chat-client.git cd ollama-chat-client

  2. Install dependencies: bash dotnet restore

  3. Start Ollama server: bash ollama serve

  4. Run the application: bash dotnet run

πŸ’‘ Usage Guide

Basic Commands

  • Type your message and press Enter to send
  • Press Enter with empty input or type 'exit' to quit
  • Messages are color-coded for better visualization:
    • 🟒 User input (Green)
    • πŸ”΅ Assistant responses (Cyan headers)
    • πŸ”΄ Error messages (Red)
    • 🟑 System messages (Yellow)

Example Interaction

About

🌟 A console chat client for Ollama, powered by .NET 9 and Semantic Kernel πŸ€–. Enjoy natural conversations with advanced AI models, real-time streaming responses πŸ”„, vibrant interface 🎨, full chat history πŸ“, and seamless LLM integration πŸš€. Built for simplicity, reliability, and smart interactions πŸ’‘.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages