Get 404 when connecting to local ollama #79
Replies: 3 comments 3 replies
-
Not sure what is going on in your config as you're calling the |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi,
Thank you so much for your fast reply.
Unfortunately, no luck yet.
The same behavior of 404 with CodeCompanion, and 200 with curl still there.
However, I've just noticed that there are 2 other lines generated sometimes when running the command:
```txt
[GIN] 2024/08/02 - 18:38:38 | 200 | 61.041µs | 127.0.0.1 | HEAD "/"
[GIN] 2024/08/02 - 18:38:38 | 200 | 3.076375ms | 127.0.0.1 | GET "/api/tags"
[GIN] 2024/08/02 - 18:38:38 | 404 | 218.792µs | 127.0.0.1 | POST "/api/chat"
```
Here is the output of :checkhealth CodeCompanion
```txt
==============================================================================
CodeCompanion: require("CodeCompanion.health").check()
codecompanion.nvim report ~
- Log file: /Users/mohamedfayed/.local/state/nvim/codecompanion.log
- OK plenary.nvim installed
- OK nvim-treesitter installed
- WARNING telescope.nvim not found
- WARNING dressing.nvim not found
- OK curl installed
```
Thank you so much
… On 2 Aug 2024, at 1:19 PM, Oli ***@***.***> wrote:
@Mohamed-E-Fayed <https://github.com/Mohamed-E-Fayed> the below should work:
lua <<EOF
require("codecompanion").setup({
strategies = {
chat = {
adapter = "ollama",
},
inline = {
adapter = "ollama",
},
agent = {
adapter = "ollama",
},
},
opts = {
--log_level = "TRACE"
})
EOF
Uncomment the log_level and run checkhealth codecompanion if you still have no luck.
—
Reply to this email directly, view it on GitHub <#79 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ANJ66AKIPFVOAU2H23FIEKDZPNMMRAVCNFSM6AAAAABL4FIVHKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRSGIZDIMI>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
2 replies
-
I’ve just did a bug report.
Thank you so much for your support.
… On 3 Aug 2024, at 1:34 AM, Oli ***@***.***> wrote:
Can you open a bug report and follow the minimal.lua file? I can't recreate this
—
Reply to this email directly, view it on GitHub <#79 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ANJ66AJTNGN5SQDVCWS2OHLZPQCN3AVCNFSM6AAAAABL4FIVHKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRSG44DSNA>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
olimorris
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was trying adapting your installation to my current setup, but I get 404 when CodeCompanion send request to local Ollama setup.
Steps:
bash brew install ollama
# it is working properly.bash nvim +PlugInstall
, and it shows successful installation.Output on nvim is nothing, but found on ollama serve logs:
[GIN] 2024/08/02 - 11:47:43 | 404 | 830.916µs | 127.0.0.1 | POST "/api/chat"
Expected behavior:
when I use bash and curl, like below, it works.
The ollama server logs:
Environment:
Mac OS 13.6 Apple Silicon
ollama version is 0.3.0
NVIM v0.10.0
Thank you so much for your support.
Beta Was this translation helpful? Give feedback.
All reactions