This repository demonstrates how to interact with the Ollama APIs using the OllamaClient
library in a .NET application. It includes features such as pulling models, listing available models, and sending chat messages to the models.
- Pull models: Retrieve models from the Ollama server.
- List models: View all available models.
- Chat interaction: Send chat messages to a specific model and receive responses.
To get started, install the OllamaClient
package via NuGet Package Manager:
Install-Package OllamaClient
-
Clone the repository:
git clone https://github.com/yourusername/Ollama-API-Teting.git cd Ollama-API-Teting
-
Install dependencies: Use the NuGet Package Manager to install the required dependencies for the project, especially the
OllamaClient
package. -
Build and run: After installing dependencies, build the project using:
dotnet build
Then run the project:
dotnet run