continue icon indicating copy to clipboard operation
continue copied to clipboard

configuration not reloading in pycharm

Open cyb3rd0g01 opened this issue 1 year ago • 3 comments

Before submitting your bug report

Relevant environment info

- OS:MAC
- Continue:0.0.45
- IDE: pycharm

Description

I put lm-studio in the model however continue is not getting the lm-studio model

core.log Error listing models: TypeError: fetch failed
Error calling Ollama /api/show endpoint: TypeError: fetch failed

config.json "models": [
{
"model": "AUTODETECT",
"title": "LM Studio",
"apiBase": "http://192.168.1.179:1234/v1/",
"completionOptions": {},
"provider": "lmstudio"
}
],
... "allowAnonymousTelemetry": false

To reproduce

  1. click on configure
  2. add lm-studio
  3. change lm-studio model in config.json and add remote server and port
  4. note that the added model is not showing up in the pull down in continue

Log output

core.log
Error listing models:  TypeError: fetch failed                                                                           
Error calling Ollama /api/show endpoint: TypeError: fetch failed

cyb3rd0g01 avatar Apr 22 '24 17:04 cyb3rd0g01

Looks like this was happening because we made the request in the constructor before setting the custom node-fetch.

I made the fix here, and it will be ready in the next release! (0.0.46, probably Monday)

sestinj avatar Apr 26 '24 09:04 sestinj

In the meantime, if you set a specific model rather than AUTODETECT, this problem won't occur

sestinj avatar Apr 26 '24 09:04 sestinj

Awesome thank you exactly what the workaround was Regards, Igor On Apr 26, 2024, at 5:03 AM, Nate Sesti @.***> wrote: In the meantime, if you set a specific model rather than AUTODETECT, this problem won't occur

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

cyb3rd0g01 avatar Apr 26 '24 11:04 cyb3rd0g01