Soenneker.Groq.HttpClients
11.0.90
Prefix Reserved
dotnet add package Soenneker.Groq.HttpClients --version 11.0.90
NuGet\Install-Package Soenneker.Groq.HttpClients -Version 11.0.90
<PackageReference Include="Soenneker.Groq.HttpClients" Version="11.0.90" />
<PackageVersion Include="Soenneker.Groq.HttpClients" Version="11.0.90" />
<PackageReference Include="Soenneker.Groq.HttpClients" />
paket add Soenneker.Groq.HttpClients --version 11.0.90
#r "nuget: Soenneker.Groq.HttpClients, 11.0.90"
#:package Soenneker.Groq.HttpClients@11.0.90
#addin nuget:?package=Soenneker.Groq.HttpClients&version=11.0.90
#tool nuget:?package=Soenneker.Groq.HttpClients&version=11.0.90
Soenneker.Groq.HttpClients
Provides a cached HttpClient configured for Groq's OpenAI-compatible API, including its base address and authentication header.
Installation
dotnet add package Soenneker.Groq.HttpClients
Configuration
{
"Groq": {
"ApiKey": "gsk_..."
}
}
Requests use https://api.groq.com by default. These optional settings override the endpoint or authentication format:
{
"Groq": {
"ClientBaseUrl": "https://api.groq.com",
"AuthHeaderName": "Authorization",
"AuthHeaderValueTemplate": "Bearer {token}"
}
}
{token} is replaced with Groq:ApiKey when the client is created.
Registration and usage
using Soenneker.Groq.HttpClients.Abstract;
using Soenneker.Groq.HttpClients.Registrars;
services.AddGroqOpenApiHttpClientAsSingleton();
IGroqOpenApiHttpClient provider =
serviceProvider.GetRequiredService<IGroqOpenApiHttpClient>();
HttpClient client = await provider.Get(cancellationToken);
HttpResponseMessage response = await client.GetAsync("/openai/v1/models", cancellationToken);
response.EnsureSuccessStatusCode();
Get() reuses the same cached client for the provider's lifetime. Dispose the provider, not the returned client, when you own the provider.
AddGroqOpenApiHttpClientAsScoped() is available when each dependency-injection scope should own and release an independent cached client. Consumers such as a scoped API utility can instead use the singleton registration to keep the transport alive across utility scopes.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.914)
- Soenneker.Utils.HttpClientCache (>= 11.0.2139)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Groq.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Groq.OpenApiClientUtil
Provides a cached Groq OpenAPI client backed by an authenticated HTTP provider |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.90 | 144 | 10/27/2026 |
| 11.0.89 | 99 | 10/27/2026 |
| 11.0.88 | 113 | 10/26/2026 |
| 11.0.87 | 105 | 10/26/2026 |
| 4.0.85 | 236 | 10/15/2026 |
| 4.0.84 | 86 | 10/15/2026 |
| 4.0.82 | 111 | 10/14/2026 |
| 4.0.80 | 104 | 10/14/2026 |
| 4.0.79 | 96 | 10/14/2026 |
| 4.0.78 | 80 | 10/14/2026 |
| 4.0.71 | 115 | 10/13/2026 |
| 4.0.68 | 126 | 10/12/2026 |
| 4.0.67 | 139 | 10/11/2026 |
| 4.0.66 | 85 | 10/11/2026 |
| 4.0.65 | 766 | 10/9/2026 |
| 4.0.64 | 62,159 | 10/1/2026 |
| 4.0.63 | 14,943 | 9/29/2026 |
| 4.0.62 | 5,996 | 9/29/2026 |
| 4.0.61 | 10,210 | 9/26/2026 |
| 4.0.60 | 105 | 9/25/2026 |
Remove redundant framework conditions