AI-admin: tving refresh ved katalog-lasting for å unngå stale cache

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
vegard 2026-03-16 10:18:12 +01:00
parent f32aa63bc3
commit c3d81b97fe

View file

@ -261,7 +261,7 @@
catalogLoading = true; catalogLoading = true;
errorMsg = ''; errorMsg = '';
try { try {
const res = await fetch('/api/admin/ai/models'); const res = await fetch('/api/admin/ai/models?refresh=1');
if (!res.ok) throw new Error('Kunne ikke hente modellkatalog'); if (!res.ok) throw new Error('Kunne ikke hente modellkatalog');
catalogModels = await res.json(); catalogModels = await res.json();
catalogLoaded = true; catalogLoaded = true;