experiment(confidence-engine): route UI journey provider centrally
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user