Closed fakr00n closed 1 week ago
Please see this issue https://github.com/yetone/avante.nvim/issues/805 .
You should change parse_message
to parse_messages
Thanx! It works now :) The Wiki should be updated to comply to the new API.
@fakr00n did you have to implement the parse_stream_message
function? That is where I have the issue.
Error executing vim.schedule lua callback: ...ue/.local/share/nvim/lazy/avante.nvim/lua/avante/llm.lua:146: attempt to call field 'parse_response' (a nil value)
stack traceback:
...ue/.local/share/nvim/lazy/avante.nvim/lua/avante/llm.lua:146: in function 'parse_stream_data'
...ue/.local/share/nvim/lazy/avante.nvim/lua/avante/llm.lua:193: in function <...ue/.local/share/nvim/lazy/avante.nvim/lua/avante/llm.lua:180>
@fakr00n did you have to implement the
parse_stream_message
function? That is where I have the issue.Error executing vim.schedule lua callback: ...ue/.local/share/nvim/lazy/avante.nvim/lua/avante/llm.lua:146: attempt to call field 'parse_response' (a nil value) stack traceback: ...ue/.local/share/nvim/lazy/avante.nvim/lua/avante/llm.lua:146: in function 'parse_stream_data' ...ue/.local/share/nvim/lazy/avante.nvim/lua/avante/llm.lua:193: in function <...ue/.local/share/nvim/lazy/avante.nvim/lua/avante/llm.lua:180>
No, I didn't implement anything. I just renamed the function parse_stream_message
to parse_stream_messages
in this line:
messages = require("avante.providers").copilot.parse_message(code_opts), -- you can make your own message, but this is very advanced
in my nvim config file as @ryul99 kindly suggested and it worked for me.
if you take a look at file avante.nvim/lua/avante/providers/copilot.lua:144
the function parse_stream_message
dosn't exist and has probably been renamed to parse_stream_messages
.
They've apparently changed the API without updating the Wiki (see #805) and since the wiki is not part of the Git repo nobody can do a pull request and fix it. Only the owner of the project can, so... I Guess more people will stumble on this issue then :)
Describe the bug
I followed the instructions for Ollama support as described in the Wiki but it doesn't seem to work. My suspicion is that the Ollama API has changed since then.
I'm running the Docker image for Ollama on localhost and I successfully connected to the Ollama server on port 11434 using telnet.
Here is my setup:
Here is the error message:
To reproduce
No response
Expected behavior
No response
Installation method
Use lazy.nvim:
Environment
Neovim version: 0.10.2-2
Repro