Comments (12)
I will test to run it on my local pc and connect to my external ollama server, maybe Vercel requires https to connect to external resources or maybe the default port of ollama 11434 isn´t allowed on Vercel infra.
from unsaged.
Local storage debug is just showing the nextauth.message: "{"event":"session","data":{"trigger":"getSession"},"timestamp":1699362676}"
from unsaged.
Maybe related to setSavedSettings in home.tsx?
The import is made in line 10 but it is never used.
from unsaged.
That error should actually just be a warning and not affect the app. It is basically checking to see if you have set a preference for light or dark theme and should default to dark if nothing is set.
Try setting NEXT_PUBLIC_DEBUG_MODE=true
in the .env file and see the console to check if all the env variables are being read correctly, client and server side. Also, check the browser network logs, you should see an error there if it is not connecting to supabase.
from unsaged.
Client side env vars looking good.
The request to /api/models result into an error:
[POST] /api/models reason=EDGE_FUNCTION_INVOCATION_TIMEOUT, status=504, user_error=true
from unsaged.
We need to implement a timeout on our side to prevent the whole model fetching from crashing. I will make a note of that. In the meantime, I know you mentioned in another issue that you are using ollama. Could it be that it gets stuck trying to connect to the ollama server?
from unsaged.
Yes I just checked that, so my Ollama server is not reachable, the fetch call is taking to long and therefor the api call to /api/models
results in a timeout.
But restarting my ollama server and making sure it is available didn´t fix the timeout.
from unsaged.
Yes so removing the ollama host variable "resolved" the problem. I think getting the ollama models isn´t working 100%
from unsaged.
Does it work okay if you deploy locally?
from unsaged.
Keep me updated. Thanks!
from unsaged.
Locally it is working fine so I think there is some limitation on Vercel. I will try to configure a reverse proxy for my ollama server and try to get the api to https maybe this will help on Vercel.
from unsaged.
Yes so Vercel isn´t working with the port 11434 for me, when I reverse proxy my ollama api to https://ollama.mydomain.com it is working fine on Vercel.
from unsaged.
Related Issues (20)
- Unsupported URL Type "workspace:": workspace:* HOT 13
- [BUG] Models not loading HOT 1
- [Feature] - Allow document upload HOT 2
- [Docs] Bad link for generation script on Getting Started page HOT 2
- [Feature] Add Ollama URL input in the settings tab
- [Feature] Add AWS Bedrock
- [Feature] Update Image generation
- [Feature] Add all previous supported languages
- Blank Page Issue with Latest Build in Docker Environment HOT 4
- [BUG] npm dependency issue HOT 2
- [Feature] Add GPT Vision Models HOT 1
- [Feature] Gemini Pro Support HOT 4
- [BUG] TypeError: Cannot read properties of undefined (reading 'inTable')
- [BUG] Docker image does not start: `next: command not found` HOT 1
- [FEATURE] Support for LaTeX
- No Logs in Cloudflare AI Gateway [BUG]
- [Help Needed] Fix support for other languages HOT 1
- [Help Needed] - Is a on-prem supabase install supported ? HOT 5
- [Help Needed] Transition from NextAuth to Supabase Auth for User Authentication HOT 1
- [Question] - 401 on access to conversation table in Supabase HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unsaged.