A NvidiaNimClientclient for C# and .NET developers who want to integrate NvidiaNim's powerful models in an easy and flexible way.
$ dotnet add package NvidiaNimClientA powerful and developer-friendly .NET client for accessing NvidiaNim models with ease. This NuGet package supports chat completion tasks.
Install via NuGet:
dotnet add package NvidiaNimClient --version 1.0.x
Initialize the Nvidia Nim client by providing your API token and the endpoint URL:
var service = new NvidiaNimClient("YOUR TOKEN", "https://integrate.api.nvidia.com/v1/chat/completions");
var client = new NnClient(
apiToken: "nvapi-xxxxxxxx",
apiBaseUrl: "https://integrate.api.nvidia.com/v1/chat/completions"
);
var message = client.
Chat.
WithModel("qwen/qwen2.5-coder-32b-instruct").
AddUserMessage("Hello, how is your day?").
SendAsync();
Console.WriteLine(message.Result?.Choices[0].Message);
This project is licensed under the MIT License.
Contributions, suggestions, and feature requests are welcome! Feel free to open an issue or submit a pull request.