Llamas.Container
0.1.1
dotnet add package Llamas.Container --version 0.1.1
NuGet\Install-Package Llamas.Container -Version 0.1.1
<PackageReference Include="Llamas.Container" Version="0.1.1" />
paket add Llamas.Container --version 0.1.1
#r "nuget: Llamas.Container, 0.1.1"
// Install Llamas.Container as a Cake Addin #addin nuget:?package=Llamas.Container&version=0.1.1 // Install Llamas.Container as a Cake Tool #tool nuget:?package=Llamas.Container&version=0.1.1
Llamas.Container
Llamas.Container
is a library providing Ollama self-hosting capabilities to .NET applications.
This package provides the logic needed to automatically hook into a local docker service, pull the ollama container, configure the necessary devices, and run it transitively.
Support for persistence and further configuration is planned.
Container Dependency Injection
Like Llamas
, Llamas.Container
extends IServiceCollection
with methods for easy injection.
These allow for hosting with or without a client, and can be injected using the same configuration as the client for simplicity.
/// Add a container based on the client configuration
var clientConfig = new OllamaClientConfiguration();
services.AddOllamaClient(clientConfig);
services.AddOllamaContainerService();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Llamas (>= 0.1.1)
- Llamas.Abstractions (>= 0.1.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- Testcontainers (>= 3.9.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Minor changes to enable testing