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.
- π 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
-
Clone and navigate:
bash git clone https://github.com/sunandrain/ollama-chat-client.git cd ollama-chat-client
-
Install dependencies:
bash dotnet restore
-
Start Ollama server:
bash ollama serve
-
Run the application:
bash dotnet run
- 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)