https://github.com/tryagi/cohere
C# SDK based on official Cohere OpenAPI specification
https://github.com/tryagi/cohere
ai api cohere cohere-api csharp dotnet generated langchain langchain-dotnet llm llms net net6 nswag openapi sdk swagger tokenizer
Last synced: 9 months ago
JSON representation
C# SDK based on official Cohere OpenAPI specification
- Host: GitHub
- URL: https://github.com/tryagi/cohere
- Owner: tryAGI
- License: mit
- Created: 2023-07-31T20:40:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-12T18:58:26.000Z (9 months ago)
- Last Synced: 2025-05-13T01:16:48.416Z (9 months ago)
- Topics: ai, api, cohere, cohere-api, csharp, dotnet, generated, langchain, langchain-dotnet, llm, llms, net, net6, nswag, openapi, sdk, swagger, tokenizer
- Language: C#
- Homepage: https://tryagi.github.io/Cohere/
- Size: 2.6 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cohere
[](https://www.nuget.org/packages/Cohere/)
[](https://github.com/tryAGI/Cohere/actions/workflows/dotnet.yml)
[](https://github.com/tryAGI/Cohere/blob/main/LICENSE.txt)
[](https://discord.gg/Ca2xhfBf3v)
## Features 🔥
- Fully generated C# SDK based on [official Cohere OpenAPI specification](https://raw.githubusercontent.com/cohere-ai/cohere-developer-experience/main/cohere-openapi.yaml) using [AutoSDK](https://github.com/tryAGI/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
### Usage
```csharp
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);
```
## 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

This project is supported by JetBrains through the [Open Source Support Program](https://jb.gg/OpenSourceSupport).

This project is supported by CodeRabbit through the [Open Source Support Program](https://github.com/marketplace/coderabbitai).