Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to ollama embeddings forbidden #258

Open
city-runner opened this issue Nov 10, 2024 · 6 comments
Open

Request to ollama embeddings forbidden #258

city-runner opened this issue Nov 10, 2024 · 6 comments

Comments

@city-runner
Copy link

when i run npm run dev will output message 11/10/2024, 2:12:29 PM [CONVEX A(aiTown/agentOperations:agentGenerateMessage)] Uncaught Error: Request to http://localhost:11434/api/embeddings forbidden ,the Characters cannot have normal conversations

I found a runnable version and .env.local has VITE_CONVEX_URL=http://127.0.0.1:3210 but The current version VITE_CONVEX_URL=https://precious-goldfinch-694.convex.cloud.

if i use just convex env set VITE_CONVEX_URL http://127.0.0.1:3210 or edit .env.local by vim ,dev:frontend will run error and not display the town.

Maybe I guessed wrong, this error is caused by other reasons.My platform is win10 wsl2

@ianmacartney
Copy link
Collaborator

ianmacartney commented Nov 12, 2024 via email

@city-runner
Copy link
Author

You can either run a convex backend locally (running on localhost or 127.0.0.1) or in the cloud (.convex.cloud). Depending how you run it, it will overwrite the .env.local file to point to the right backend. If you ended up running it in the cloud, it will not be able to access localhost:11434 since it is not running locally. The README has some more info on the differences here

On Sat, Nov 9, 2024 at 10:32 PM city-runner @.
> wrote: when i run npm run dev will output message 11/10/2024, 2:12:29 PM [CONVEX A(aiTown/agentOperations:agentGenerateMessage)] Uncaught Error: Request to http://localhost:11434/api/embeddings forbidden ,the Characters cannot have normal conversations I found a runnable version and .env.local has VITE_CONVEX_URL= http://127.0.0.1:3210 but The current version VITE_CONVEX_URL= https://precious-goldfinch-694.convex.cloud. if i use just convex env set VITE_CONVEX_URL http://127.0.0.1:3210 or edit .env.local by vim ,dev:frontend will run error and not display the town. Maybe I guessed wrong, this error is caused by other reasons.My platform is win10 wsl2 — Reply to this email directly, view it on GitHub <#258>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACZQW6XKOMKCXBWKBA453DZ734ZDAVCNFSM6AAAAABRP4QDGWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY2DMOBYG43DIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.*>

What I mean is that I can't run this project properly locally, I can access http://localhost:11434/api/embeddings in the terminal. embeddings gives the correct vectors
But running this project prompts the aforementioned error, I tried to fix it but failed.

@LieRenXZ
Copy link

You can either run a convex backend locally (running on localhost or 127.0.0.1) or in the cloud (.convex.cloud). Depending how you run it, it will overwrite the .env.local file to point to the right backend. If you ended up running it in the cloud, it will not be able to access localhost:11434 since it is not running locally. The README has some more info on the differences here

On Sat, Nov 9, 2024 at 10:32 PM city-runner @.
> wrote: when i run npm run dev will output message 11/10/2024, 2:12:29 PM [CONVEX A(aiTown/agentOperations:agentGenerateMessage)] Uncaught Error: Request to http://localhost:11434/api/embeddings forbidden ,the Characters cannot have normal conversations I found a runnable version and .env.local has VITE_CONVEX_URL= http://127.0.0.1:3210 but The current version VITE_CONVEX_URL= https://precious-goldfinch-694.convex.cloud. if i use just convex env set VITE_CONVEX_URL http://127.0.0.1:3210 or edit .env.local by vim ,dev:frontend will run error and not display the town. Maybe I guessed wrong, this error is caused by other reasons.My platform is win10 wsl2 — Reply to this email directly, view it on GitHub <#258>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACZQW6XKOMKCXBWKBA453DZ734ZDAVCNFSM6AAAAABRP4QDGWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY2DMOBYG43DIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.*>

I have the same problem. How can I change to use the code locally. I have run it using "npm run dev:frontend" and "npm run dev:backend"

@LieRenXZ
Copy link

and I have checked the use of ollama

@LieRenXZ
Copy link

How can I select to use cloud or local

@ianmacartney
Copy link
Collaborator

ianmacartney commented Nov 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants