1
0

feat: Introduce a pluggable LLM provider system with token extraction, pricing, and updated setup configuration.

This commit is contained in:
2026-03-05 22:02:22 +01:00
parent 4476cc7f15
commit c7e7976d9d
12 changed files with 499 additions and 28 deletions

View File

@@ -0,0 +1,18 @@
using AnchorCli.OpenRouter;
namespace AnchorCli.Providers;
/// <summary>
/// Interface for fetching model pricing information.
/// </summary>
internal interface IPricingProvider
{
/// <summary>
/// Fetches pricing info for a specific model.
/// </summary>
Task<ModelInfo?> GetModelInfoAsync(string modelId, CancellationToken ct = default);
/// <summary>
/// Fetches all available models with pricing.
/// </summary>
Task<Dictionary<string, ModelInfo>> GetAllModelsAsync(CancellationToken ct = default);
}