LlmTornado 3.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package LlmTornado --version 3.0.1
NuGet\Install-Package LlmTornado -Version 3.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LlmTornado" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LlmTornado --version 3.0.1
#r "nuget: LlmTornado, 3.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LlmTornado as a Cake Addin
#addin nuget:?package=LlmTornado&version=3.0.1

// Install LlmTornado as a Cake Tool
#tool nuget:?package=LlmTornado&version=3.0.1

LlmTornado

🌪️ LLM Tornado - one .NET library to consume OpenAI, Anthropic, Cohere, Azure, and self-hosted APIs.

Each month at least one new large language model is released. Would it be awesome if using the new model was as easy as switching one argument? LLM Tornado acts as an aggregator allowing you to do just that. Think SearX but for LLMs!

OpenAI, Cohere, Anthropic, and Azure are currently supported along with KoboldCpp and Ollama.

⚡Getting Started

Install LLM Tornado via NuGet:

Install-Package LlmTornado

🔮 Quick Inference

var api = new LlmTornado.OpenAiApi("YOUR_API_KEY");
var result = await api.Completions.GetCompletion("One Two Three One Two");
Console.WriteLine(result);
// should print something starting with "Three"

Why Tornado?

  • 25,000+ installs on NuGet under previous names Lofcz.Forks.OpenAI, OpenAiNg.
  • Used in commercial projects incurring charges of thousands of dollars monthly.
  • The license will never change. Looking at you HashiCorp and Tiny.
  • Supports streaming, functions/tools, and strongly typed LLM plugins/connectors.
  • Great performance, nullability annotations.
  • Extensive tests suite.
  • Maintained actively for over half a year.

Documentation

Every public class, method, and property has extensive XML documentation, using LLM Tornado should be intuitive if you've used any other LLM library previously. Feel free to open an issue here if you have any questions.

PRs are welcome! ❤️

License

This library is licensed under MIT license.

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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.8 52 5/9/2024
3.0.7 104 5/5/2024
3.0.6 56 5/2/2024
3.0.5 62 5/1/2024
3.0.4 60 5/1/2024
3.0.3 56 5/1/2024
3.0.2 61 5/1/2024
3.0.1 85 4/27/2024
3.0.0 79 4/27/2024

V3 release