-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
I sometimes got 403 error when i ask question from internet. #308
Comments
Hey, sorry about the issue. Can you enable the custom origin header under Advanced Settings in Settings > Ollama Settings? This should hopefully resolve the issue, as Ollama seems to have a CORS issue. |
It seems that whenever we chat with deepseek for the second time in a chat history, we always get 403 no matter what, even if enabling custom origin header. |
The 403 issue in Ollama occurs due to a CORS problem, as described in this ollama/ollama#2335. Page Assist attempts to resolve it by rewriting headers, but unfortunately, this doesn't always work in certain browsers. #45 #308 Browser APIs often change with different releases, and since using web search is causing issues, I believe there is a bug in the origin header that is not being overridden. I will look into it. The only current reliable solution is to add the following environment variable:
Steps to Add the Environment VariableOn Windows
On Mac
On Linux
This should resolve the issue. Hopefully, it works! |
I am on manjaro (zsh) with chrome. I did not permanently change zshrc. instead, I type I guess it's not @n4ze3m 's bug. Instead, there could be some issue with my browser or ollama. |
Oh, that’s bad. Did you restart the Ollama? try
|
It turned out that by running |
There's another thing to remember, too. Google's search API is free to use. Half the time, Google doesn't return subsequent results--most likely due to resource monitoring per IP. So Page Assit might need to catch those failed API calls and retry. |
The keywords in Settings > RAG Settings > Prompt > Web does not fit the deepseek-r1 models well. After the first search on internet, large portion of the chat_history will be included in the search query sent to search engines. This causes the search engine to return errors (depending on search engine) and break the chat. I tried many new keywords, but they are not working very well unless I delete the {chat_history} |
Yeah, the current follow-up query generation isn't really great using R1. I think I'll add an option to choose another model for generating follow-up questions or add a setting to turn off follow-up question generation. |
My Ollama is hosted on my NAS via docker, (192.168.31.254)
and the Ollama port is same as the default one http://192.168.31.254:11434/
but still got 403 errors
the environment variable already added in the Ollama.
The text was updated successfully, but these errors were encountered: