twinnydotdev / twinny

The most no-nonsense, locally or API-hosted AI code completion plugin for Visual Studio Code - like GitHub Copilot but completely free and 100% private.
https://twinny.dev
MIT License
2.36k stars 130 forks source link

FIM requests not being sent / recieved at Ollama API #175

Closed lewismacnow closed 4 months ago

lewismacnow commented 4 months ago

Describe the bug I have ollama running on a 'good' host, been used with ollama for multiple APIs for a while. With many models. Twinny extension is installed. Settings updated to point at the external ollama api. Completions via the chat window are working perfectly. FIM returns nothing. No error, no timeout. And the Logs show no requests are being recieved.

To Reproduce Steps to reproduce the behavior:

  1. Install Twinny

image

  1. Check/update settings to ensure model correct and available

image

image

image

  1. Test co-pilot style chat

image

3.1. Check Logs for Ollama to see the API request:

image

  1. Test auto code complete - Even using manual key-binding nothing happens but this loading symbol spins (forever) and never stops until I click it

image

4.1. Check Ollama server for API request - there are none, the request from 3.1 is still the most recent:

image

Expected behavior Code completions

Desktop (please complete the following information):

Additional context Ollama autocoder extension works which has similar features to what I suspect you have created for Twinny. It seems the HTTP requets is not making it to my ollama server?

lewismacnow commented 4 months ago

UPDATE: This issue was caused by a setting in VS Code. (Not sure which one).

SOLUTION: I reset all VS Code settings to default;

  1. Open Visual Studio Code and click on the settings icon.
  2. Click on "Settings" and then on the file icon to open the settings.json file.
  3. Remove all existing settings in the file, leaving only the curly braces {}.
  4. Save the file. This action will reset all your settings.
  5. Restart Visual Studio Code for the changes to take effect.