Giter Club home page Giter Club logo

Comments (12)

sebiweise avatar sebiweise commented on May 26, 2024 1

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.

sebiweise avatar sebiweise commented on May 26, 2024

Local storage debug is just showing the nextauth.message: "{"event":"session","data":{"trigger":"getSession"},"timestamp":1699362676}"

from unsaged.

sebiweise avatar sebiweise commented on May 26, 2024

Maybe related to setSavedSettings in home.tsx?
The import is made in line 10 but it is never used.

from unsaged.

jorge-menjivar avatar jorge-menjivar commented on May 26, 2024

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.

sebiweise avatar sebiweise commented on May 26, 2024

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.

jorge-menjivar avatar jorge-menjivar commented on May 26, 2024

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.

sebiweise avatar sebiweise commented on May 26, 2024

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.

sebiweise avatar sebiweise commented on May 26, 2024

Yes so removing the ollama host variable "resolved" the problem. I think getting the ollama models isn´t working 100%

from unsaged.

jorge-menjivar avatar jorge-menjivar commented on May 26, 2024

Does it work okay if you deploy locally?

from unsaged.

jorge-menjivar avatar jorge-menjivar commented on May 26, 2024

Keep me updated. Thanks!

from unsaged.

sebiweise avatar sebiweise commented on May 26, 2024

image
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.

sebiweise avatar sebiweise commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.