1
0

feat: Implement OpenRouter API client for managing headers and retrieving model pricing.

This commit is contained in:
2026-03-05 11:52:08 +01:00
parent 5fb914dbc8
commit 941894761a
3 changed files with 29 additions and 1 deletions

View File

@@ -14,6 +14,11 @@ internal sealed class PricingProvider
private static readonly HttpClient Http = new();
private Dictionary<string, ModelInfo>? _models;
static PricingProvider()
{
OpenRouterHeaders.ApplyTo(Http);
}
/// <summary>
/// Fetches the full model list from OpenRouter (cached after first call).
/// </summary>