continue icon indicating copy to clipboard operation
continue copied to clipboard

Fatal Error: Cannot read properties of undefined (reading 'toLowerCase')

Open thgg666 opened this issue 9 months ago • 8 comments

**Config Errors Please resolve the following errors in your assistant configuration.

Fatal Error: Cannot read properties of undefined (reading 'toLowerCase')**

this is the content of my config.json file. Please help me solve it. i have already deleted the API to protect my privacy

{ "models": [ { "title": "Claude 3.5 Sonnet (Free Trial)", "provider": "free-trial", "model": "claude-3-5-sonnet-latest", "systemMessage": "You are an expert software developer. You give helpful and concise responses." }, { "title": "GPT-4o (Free Trial)", "provider": "free-trial", "model": "gpt-4o", "systemMessage": "You are an expert software developer. You give helpful and concise responses." }, { "title": "Llama3.1 70b (Free Trial)", "provider": "free-trial", "model": "llama3.1-70b", "systemMessage": "You are an expert software developer. You give helpful and concise responses." }, { "title": "Codestral (Free Trial)", "provider": "free-trial", "model": "codestral-latest", "systemMessage": "You are an expert software developer. You give helpful and concise responses." }, { "model": "claude-3-5-sonnet-latest", "provider": "anthropic", "apiKey": "", "title": "Claude 3.5 Sonnet" }, { "title": "DeepSeek Coder 2 Lite", "model": "deepseek-2-lite", "provider": "ollama" }, { "title": "DeepSeek Coder", "model": "deepseek-coder", "contextLength": 128000, "apiKey": "", "provider": "deepseek" }

], "tabAutocompleteModel": { "title": "Codestral", "provider": "mistral", "model": "codestral-latest", "apiKey": "" }, "contextProviders": [ { "name": "code", "params": {} }, { "name": "docs", "params": {} }, { "name": "diff", "params": {} }, { "name": "terminal", "params": {} }, { "name": "problems", "params": {} }, { "name": "folder", "params": {} }, { "name": "codebase", "params": {} } ], "slashCommands": [ { "name": "share", "description": "Export the current chat session to markdown" }, { "name": "cmd", "description": "Generate a shell command" }, { "name": "commit", "description": "Generate a git commit message" } ], "embeddingsProvider": { "provider": "free-trial" }, "reranker": { "name": "free-trial" } }

thgg666 avatar Apr 10 '25 11:04 thgg666

@thgg666

Downgrading my extension version to 1.0.3 works for me, but I would try 1.0.4 first since I skipped that.

How to downgrade extension version in VSCode:

Click on the extensions tab Click on the dropdown arrow next to uninstall Click Install specific version Choose version & wait Click Restart Extensions

This should temporarily solve your issue.

ElijahAlly avatar Apr 11 '25 15:04 ElijahAlly

I had a similar problem at pre-release version 1.1.23

calloftimereiver avatar Apr 14 '25 12:04 calloftimereiver

@ElijahAlly thans,man. i have allready solved my problem ,just delect the text "reranker": { "name": "free-trial" } in config.json ,then continue would not give the error

thgg666 avatar Apr 15 '25 09:04 thgg666

@thgg666 works for me, thanks.

calloftimereiver avatar Apr 15 '25 10:04 calloftimereiver

Why aren't all of the users facing this issue only us have to remove reranker? weird

asking, coz we cant be looking for solutions after every new version

mkagenius avatar Apr 16 '25 18:04 mkagenius

@ElijahAlly thans,man. i have allready solved my problem ,just delect the text "reranker": { "name": "free-trial" } in config.json ,then continue would not give the error

thanks,that works well for me.

LPY706 avatar Apr 18 '25 02:04 LPY706

yes, deleting the ranker entry worked - wth is that?

thanks :)

dancingmadkefka avatar Apr 22 '25 09:04 dancingmadkefka

You can find the files here on Mac according to the doc, in case your continue ui in IDE freezes

~/.continue/

shashank42 avatar Apr 28 '25 10:04 shashank42

Thanks y'all for all of the +1s! I'm sorry it took some time to get to this, but I'm going to make a hot fix today

sestinj avatar Apr 28 '25 18:04 sestinj

https://github.com/continuedev/continue/releases/tag/v1.1.28-vscode This was just released in a hotfix pre-release

sestinj avatar Apr 28 '25 20:04 sestinj

@sestinj you should be able to close this one

fbricon avatar May 09 '25 12:05 fbricon