mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-16 03:39:29 +02:00
Marqueur de version + fix bench JSON
- config/main : LOKI_VERSION (git sha), exposé via /api/health et /api/version ; affiché dans la barre du haut. Permet de vérifier que l'image déployée est bien à jour (cause fréquente de 'les nouveautés n'apparaissent pas'). - Dockerfile : ARG/ENV LOKI_VERSION ; workflow : build-arg = github.sha. - bench : corrige un bug de précédence d'opérateur dans l'épreuve JSON (le tuple de retour était malformé quand l'extraction était partielle). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SVay7z3y7q2gEe54ByAE6N
This commit is contained in:
6 files changed
+42
-2
No files matched your search
@@ -41,6 +41,15 @@ export async function getSystemStats(): Promise<SystemStats> {
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function getVersion(): Promise<string> {
|
||||
try {
|
||||
const res = await fetch("/api/version");
|
||||
return (await res.json()).version ?? "?";
|
||||
} catch {
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
export interface LoadedModel {
|
||||
name: string;
|
||||
on_gpu: boolean;
|
||||
|
||||
Reference in new issue
Block a user