Implemented a demo for Ollamasharp library#79
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a demo application for the OllamaSharp library, showcasing integration with local Large Language Models through Ollama. The demo provides a chat interface built on the Ivy framework for interacting with AI models.
- Implements a chat interface for communicating with local Ollama models
- Adds model selection and management functionality
- Includes comprehensive documentation and setup instructions
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| ollamasharp/README.md | Comprehensive documentation covering installation, setup, and usage instructions |
| ollamasharp/Program.cs | Main application entry point with server configuration |
| ollamasharp/OllamaSharpDemo.sln | Visual Studio solution file |
| ollamasharp/OllamaSharpDemo.csproj | Project configuration with dependencies |
| ollamasharp/GlobalUsings.cs | Global using statements for the project |
| ollamasharp/Apps/OllamaSharp.cs | Core application logic implementing chat interface and model management |
| ollamasharp/.gitignore | Git ignore configuration |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
@oleskash I will try this out today-latest-tomorrow, need to install ollama and stuff... (just so you know why it is taking some time for me to review) |
No wories :) |
|
Good job! |

The sample demonstrates how to:
Connect to a local Ollama API instance


List available models
Send chat messages and receive streaming responses
Handle connection errors and service availability