feat(ai): implement AI models management and configuration in admin panel

This commit is contained in:
Nils-Johan Gynther
2026-04-19 11:07:15 +02:00
parent e7c8fd8416
commit f3db5ba51a
10 changed files with 341 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
import { NextResponse } from 'next/server';
const API_BASE = process.env.NEXT_PUBLIC_API_URL_INTERNAL || 'http://recipe-api:8080';
export async function GET() {
const res = await fetch(`${API_BASE}/api/ai/models`, { cache: 'no-store' });
const text = await res.text();
return new NextResponse(text, {
status: res.status,
headers: { 'Content-Type': 'application/json' },
});
}