Cohere 1.0.1-dev.136

This is a prerelease version of Cohere.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Cohere --version 1.0.1-dev.136
                    
NuGet\Install-Package Cohere -Version 1.0.1-dev.136
                    
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="Cohere" Version="1.0.1-dev.136" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cohere" Version="1.0.1-dev.136" />
                    
Directory.Packages.props
<PackageReference Include="Cohere" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cohere --version 1.0.1-dev.136
                    
#r "nuget: Cohere, 1.0.1-dev.136"
                    
#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.
#:package Cohere@1.0.1-dev.136
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Cohere&version=1.0.1-dev.136&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Cohere&version=1.0.1-dev.136&prerelease
                    
Install as a Cake Tool

Cohere

Nuget package dotnet License: MIT Discord

Features 🔥

  • Fully generated C# SDK based on official Cohere OpenAPI specification using AutoSDK
  • Same day update to support new features
  • Updated and supported automatically if there are no breaking changes
  • All modern .NET features - nullability, trimming, NativeAOT, etc.
  • Support .Net Framework/.Net Standard 2.0
  • Microsoft.Extensions.AI IChatClient and IEmbeddingGenerator support

Usage

using Cohere;

using var client = new CohereClient(apiKey);

var response = await client.GenerateAsync(new GenerateRequest
{
    Prompt = "Hello, Cohere! Can you tell me a joke?",
});

Console.WriteLine("Cohere Response:");
Console.WriteLine(response.Generations[0].Text);

Microsoft.Extensions.AI

The SDK implements IChatClient and IEmbeddingGenerator:

using Cohere;
using Meai = Microsoft.Extensions.AI;

// IChatClient
Meai.IChatClient chatClient = new CohereClient(apiKey);
var response = await chatClient.GetResponseAsync(
    [new Meai.ChatMessage(Meai.ChatRole.User, "Hello!")],
    new Meai.ChatOptions { ModelId = "command-r-08-2024" });

// IEmbeddingGenerator
Meai.IEmbeddingGenerator<string, Meai.Embedding<float>> generator = new CohereClient(apiKey);
var embeddings = await generator.GenerateAsync(
    ["Hello, world!"],
    new Meai.EmbeddingGenerationOptions { ModelId = "embed-english-v3.0" });

Note: Use the Meai alias because the Cohere SDK has its own generated IChatClient interface.

Support

Priority place for bugs: https://github.com/tryAGI/Cohere/issues
Priority place for ideas and general questions: https://github.com/tryAGI/Cohere/discussions
Discord: https://discord.gg/Ca2xhfBf3v

Acknowledgments

JetBrains logo

This project is supported by JetBrains through the Open Source Support Program.

CodeRabbit logo

This project is supported by CodeRabbit through the Open Source Support Program.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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
1.0.1-dev.165 90 4/1/2026
1.0.1-dev.164 55 4/1/2026
1.0.1-dev.161 53 3/29/2026
1.0.1-dev.160 70 3/28/2026
1.0.1-dev.159 71 3/28/2026
1.0.1-dev.158 147 3/28/2026
1.0.1-dev.157 45 3/28/2026
1.0.1-dev.156 56 3/28/2026
1.0.1-dev.145 83 3/20/2026
1.0.1-dev.144 46 3/20/2026
1.0.1-dev.141 47 3/20/2026
1.0.1-dev.139 44 3/20/2026
1.0.1-dev.138 48 3/19/2026
1.0.1-dev.136 106 3/19/2026
1.0.1-dev.135 43 3/19/2026
1.0.1-dev.133 44 3/19/2026
1.0.1-dev.132 48 3/19/2026
1.0.1-dev.130 42 3/19/2026
1.0.1-dev.129 39 3/19/2026
1.0.0 14,817 3/5/2025
Loading failed