You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've started seeing an issue when using gen.nvim in the last couple of days. When I make a first request to the ollama server using the plugin, I get a response as expected. However, when I make follow-up requests, I'm not able to get any further responses from the ollama server. If I close the gen.nvim buffer and ask something again, I will get another response back, but the context of the conversation has been lost. These follow-up responses contain an error from what I think is the ollama server. Here is a sample error response:
Response data:
{ '{"error":"json: cannot unmarshal string into Go struct field ChatRequest.messages of type api.Message"}' }
I'll paste an entire example set of requests and responses here, in the hope that it's helpful. In the example, I ask codellama to generate a small C++ function, which is does. I then ask it to explain the code to me, and that's when the error occurs. Here is the debug output,
When I run that last curl command from my shell, I see the same cannot unmarshal... error as a response. I'm unfortunately not a JSON, Go, or Web expert, but I wonder if part of the message isn't getting escaped properly or something like that?
The text was updated successfully, but these errors were encountered:
Hi David,
I've started seeing an issue when using
gen.nvim
in the last couple of days. When I make a first request to theollama
server using the plugin, I get a response as expected. However, when I make follow-up requests, I'm not able to get any further responses from theollama
server. If I close thegen.nvim
buffer and ask something again, I will get another response back, but the context of the conversation has been lost. These follow-up responses contain an error from what I think is theollama
server. Here is a sample error response:I'll paste an entire example set of requests and responses here, in the hope that it's helpful. In the example, I ask codellama to generate a small C++ function, which is does. I then ask it to explain the code to me, and that's when the error occurs. Here is the debug output,
The logs from the
ollama
server for those two requests are as follows:When I run that last curl command from my shell, I see the same
cannot unmarshal...
error as a response. I'm unfortunately not a JSON, Go, or Web expert, but I wonder if part of the message isn't getting escaped properly or something like that?The text was updated successfully, but these errors were encountered: