argentini.ollamafarm 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global argentini.ollamafarm --version 1.0.1                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local argentini.ollamafarm --version 1.0.1                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=argentini.ollamafarm&version=1.0.1                
nuke :add-package argentini.ollamafarm --version 1.0.1                

Ollama Farm

Ollama Farm is a CLI tool that intermediates REST API calls to multiple ollama API services. Simply make calls to the Ollama Farm REST API as if it were an ollama REST API and the rest is handled for you.

Installation

Install dotnet 8 or later from https://dotnet.microsoft.com/en-us/download and then install Ollama Farm with the following command:

dotnet tool install --global argentini.ollamafarm

You should relaunch Terminal/cmd/PowerShell so that the system path will be reloaded and the ollamafarm command can be found. If you've previously installed the dotnet runtime, this won't be necessary.

How To Use

Ollama Farm is a system-level command line interface application (CLI). After installing you can access Ollama Farm at any time.

To get help on the available commands, just run ollamafarm in Terminal, cmd, or PowerShell.

ollamafarm

This will launch the application in help mode which displays the commands and options. For example, to launch it with one or more server addresses running the ollama API service on the default port:

ollamafarm localhost 192.168.0.5 192.168.0.6

It will listen on port 4444 for ollama API requests to /api/generate. You would simply POST the same JSON request as you would to the ollama API service. The request will get sent to the first available host.

You can also change the listening port:

ollamafarm --port 5555 localhost 192.168.0.5 192.168.0.6

And if you run your ollama hosts on a custom port, just use colon syntax:

ollamafarm --port 5555 localhost:12345 192.168.0.5 192.168.0.6
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.10 95 10/1/2024
1.0.9 88 9/30/2024
1.0.8 84 9/30/2024
1.0.7 80 9/30/2024
1.0.6 76 9/30/2024
1.0.5 87 9/28/2024
1.0.4 83 9/27/2024
1.0.3 133 9/23/2024
1.0.2 106 9/2/2024
1.0.1 94 9/2/2024
1.0.0 103 9/2/2024

Added host request, streaming support