https://github.com/tryagi/ai21
Generated C# SDK based on official AI21 OpenAPI specification
https://github.com/tryagi/ai21
ai ai21 ai21labs api csharp dotnet generated langchain langchain-dotnet llm llms net net6 nswag openapi sdk swagger
Last synced: about 2 months ago
JSON representation
Generated C# SDK based on official AI21 OpenAPI specification
- Host: GitHub
- URL: https://github.com/tryagi/ai21
- Owner: tryAGI
- License: mit
- Created: 2023-07-31T23:00:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T18:30:22.000Z (7 months ago)
- Last Synced: 2024-10-25T01:34:02.432Z (7 months ago)
- Topics: ai, ai21, ai21labs, api, csharp, dotnet, generated, langchain, langchain-dotnet, llm, llms, net, net6, nswag, openapi, sdk, swagger
- Language: C#
- Homepage: https://tryagi.github.io/AI21/
- Size: 505 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AI21
[](https://www.nuget.org/packages/AI21/)
[](https://github.com/tryAGI/AI21/actions/workflows/dotnet.yml)
[](https://github.com/tryAGI/AI21/blob/main/LICENSE.txt)
[](https://discord.gg/Ca2xhfBf3v)## Features 🔥
- Fully generated C# SDK based on [official OpenAPI specification](https://api.ai21.com/openapi.json) using [OpenApiGenerator](https://github.com/HavenDV/OpenApiGenerator)
- 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 AI21;usung var api = new Ai21Api(apiKey);
await api.Chat.V1J2UltraChatAsync(
messages:
[
new ChatMessage
{
Text = "Hello",
Role = RoleType.User,
}
],
system: string.Empty,
cancellationToken: CancellationToken.None);
```## Support
Priority place for bugs: https://github.com/tryAGI/AI21/issues
Priority place for ideas and general questions: https://github.com/tryAGI/AI21/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).