experiment(confidence-engine): route UI journey provider centrally

This commit is contained in:
2026-09-07 09:35:53 +01:00
parent 642a969b18
commit bb3082d633
15 changed files with 158 additions and 17 deletions
@@ -1,4 +1,4 @@
import { getProvider } from "@/lib/llm/provider";
import { getProvider, getProviderModelName } from "@/lib/llm/provider";
import {
buildFocusedDeconstructPrompt,
focusedDeconstructJsonSchema,
@@ -58,7 +58,7 @@ export async function POST(request) {
const startedAt = Date.now();
const wrapper = await provider.generateReconstruction(
prompt,
process.env.OLLAMA_MODEL,
getProviderModelName(),
focusedDeconstructJsonSchema,
);
const elapsedMs = Date.now() - startedAt;