Closed guoliang closed 3 months ago
Hi @guoliang ,
Could you try to pin-point what of that configuration is causing the issues? Could you comment out all lines, until you find the right one?
Thanks and best regards, David
fellow idiot here.
I'm not a bright lua master, so for those not using packer
(or just not lazy) - only contents of opts goes to setup block. Experienced the same thing issue starter did, and then tried the abovementioned and it worked.
It will go like this:
require('gen').setup({
model = ...
...
debug = false
})
@David-Kunz I narrowed this down to 4be150b7421bc0f24c541916502e382666d1d107. Using Ollama locally following the default setup, I checked out a0a8ef951feba78613c6bd5558cd95949c0df9f5, and everything works. When I checkout 4be150b7421bc0f24c541916502e382666d1d107, aka merge of https://github.com/David-Kunz/gen.nvim/commit/4be150b7421bc0f24c541916502e382666d1d107 then it stops working. I have to do a few things, but I can do more debugging on that particular PR worst-case tomorrow. Sorry about all the edits I keep clicking the hash itself expecting a copy :S I'm a bad user of github hahah.
.. "/api/chat -d $body"
-- .. "/api/generate -d $body"
I changed endpoint from generate to chat and it works for me.
the repo setup has now changed and is functioning by default on my end, so I would say this issue can be closed @guoliang .
I have tried the following
and
What seems to work for me was using the following setup given here https://github.com/David-Kunz/gen.nvim/issues/32#issuecomment-1817778455
However the output is just one line with no line breaks or word wrap.