feat(plugins): add llama.cpp server integration and widget (#6765)

This commit is contained in:
leafyelin authored and GitHub committed 2026-09-10 20:06:13 +02:00
1 parent 1102ad8342
commit 6cca757493
31 files changed
+2054 -4

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import { createIntegrationAsync } from "@homarr/integrations/factory";
import type { LlamacppStats } from "@homarr/integrations";
import { createIntegrationRequestHandler } from "./lib/integration-request-handler";
export const llamacppStatsRequestHandler = createIntegrationRequestHandler<
LlamacppStats,
"llamacpp",
Record<string, never>
>({
cacheNamespace: "llamacpp:stats",
async requestAsync(integration) {
const integrationInstance = await createIntegrationAsync(integration);
return await integrationInstance.getStatsAsync();
},
});