page-assist
page-assist copied to clipboard
ollama log 403 insteand of 200 when embedding
hey, really interesting project.
I tried the sidebar mode, and started to chat about the page by entering "what is it about?". Then it started embedding, for really long time. I checked ollama log, it said:
[GIN] 2024/03/07 - 19:21:17 | 403 | 6.166µs | 127.0.0.1 | POST "/api/embeddings"
I set the embedding model to nomic one.
Do I miss anything here?
Even I disable "chat about the page" and just type anything, it returns:
Something went wrong. Check out the following logs:
```
Ollama call failed with status code 403:
```
I use Microsoft Edge.
Hey, this is due to an Ollama origin error (https://github.com/ollama/ollama/issues/2335), but the page assist tries to rewrite the API request to a different origin to avoid the error. However, some browsers (like Edge) are not rewriting on the sidebar. I will look into it