Added home page dashboard, added embedding cache size estimation and front-end label, added individual health check routes

This commit is contained in:
2025-12-30 02:54:30 +01:00
parent 4fe6b4a112
commit 0f599a49d0
9 changed files with 2015 additions and 1692 deletions

View File

@@ -219,6 +219,11 @@ public class Client
return await GetUrlAndProcessJson<ServerGetModelsResult>(GetUrl($"{baseUri}/Server", "Models", apiKey, []));
}
public async Task<ServerGetEmbeddingCacheSizeResult> ServerGetEmbeddingCacheSizeAsync()
{
return await GetUrlAndProcessJson<ServerGetEmbeddingCacheSizeResult>(GetUrl($"{baseUri}/Server/EmbeddingCache", "Size", apiKey, []));
}
private static async Task<T> GetUrlAndProcessJson<T>(string url)
{
using var client = new HttpClient();