Generated C# SDK based on HuggingFace OpenAPI specification.
$ dotnet add package HuggingFaceusing HuggingFace;
using var client = new HuggingFaceClient(apiKey, client);
var response = await client.GenerateTextAsync(
"gpt2",
new GenerateTextRequest
{
Inputs = "Hello",
Parameters = new GenerateTextRequestParameters
{
MaxNewTokens = 250,
},
});
Priority place for bugs: https://github.com/tryAGI/HuggingFace/issues
Priority place for ideas and general questions: https://github.com/tryAGI/HuggingFace/discussions
Discord: https://discord.gg/Ca2xhfBf3v

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