page-assist icon indicating copy to clipboard operation
page-assist copied to clipboard

ollama log 403 insteand of 200 when embedding

Open happy15 opened this issue 11 months ago • 3 comments

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?

happy15 avatar Mar 07 '24 11:03 happy15

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: 
        ```
        

happy15 avatar Mar 07 '24 11:03 happy15

I use Microsoft Edge.

happy15 avatar Mar 07 '24 11:03 happy15

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

n4ze3m avatar Mar 07 '24 11:03 n4ze3m