X
Xata12h ago
beo

issue with build when specifying OLLAMA_ENABLED=1

Collecting page data ..Error: No providers enabled. Please configure API keys at <unknown> (.next/server/chunks/7078.js:1:2183) at 12900 (.next/server/chunks/7078.js:1:2394) at t (.next/server/webpack-runtime.js:1:143) at 25207 (.next/server/chunks/7640.js:1:144) at t (.next/server/webpack-runtime.js:1:143) at 83974 (.next/server/app/api/chat/route.js:190:22556) at t (.next/server/webpack-runtime.js:1:143) at 37225 (.next/server/app/api/chat/route.js:190:2185) at t (.next/server/webpack-runtime.js:1:143) at r (.next/server/app/api/chat/route.js:196:1480)
Build error occurred
[Error: Failed to collect page data for /api/chat] { type: 'Error' } /opt/agent/apps/dbagent:  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  [email protected] build: next build Exit status 1 Tried several workarounds, but as this is new. Im assuming too many things...
2 Replies
cmck
cmck11h ago
Hi! Instead of OLLAMA_ENABLED=1 can you try putting OLLAMA_HOST=localhost into your .env.local with your API keys?
tsg
tsg10h ago
Just to make sure, you are running from source, right? Because ollama is not in a release yet

Did you find this page helpful?