An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
refactor: Update workflow to use model identifier instead of environment variable
Yoshiki Miura568caa999145
diff --git a/lib/actions/workflow.tsx b/lib/actions/workflow.tsxindex dce30a84..7b57501b 100644--- a/lib/actions/workflow.tsx+++ b/lib/actions/workflow.tsx@@ -63,7 +63,7 @@ export async function workflow(// Remove the spinneruiStream.update(null)- const useOllama = process.env.OLLAMA_MODEL && process.env.OLLAMA_BASE_URL+ const useOllama = model.startsWith('ollama')// Select the appropriate researcher function based on the environment variablesconst { text, toolResults } = useOllama? await researcherWithOllama(uiStream, messages, model)