cody icon indicating copy to clipboard operation
cody copied to clipboard

bug: mainThreadExtensionService.ts:81 [sourcegraph.cody-ai]Unexpected token { in JSON at position 137

Open riccardo-unipg opened this issue 9 months ago • 0 comments

Version

1.89.1

Describe the bug

Hi, I'm using cody with Ollama with ssh on a remote computer, locally everything works and even remotely everything apparently seemed to work, in fact I can see and choose my ollama models and chat and do autocomplete with them. Sometimes the chats work while other times (without knowing the reason) the response generation is interrupted and this error is presented in the developer tools toolbox: mainThreadExtensionService.ts:81 [sourcegraph.cody-ai]Unexpected token { in JSON at position 137

My remote settings are these:

{ "cody.autocomplete.enabled": true, "cody.autocomplete.languages": { "cody.autocomplete.advanced.provider": "experimental-ollama", "cody.autocomplete.experimental.ollamaOptions": { "url": "http://xxx.xxx.xxx.xxx:11434", "model": "deepseek-coder" } } }

Expected behavior

I don't know what to do because sometimes it responds correctly, other times it doesn't, I can't understand what the problem is

Additional context

No response

riccardo-unipg avatar May 10 '24 07:05 riccardo-unipg