huggingface/llm-vscode

Error 'HuggingFaceCode::setApiToken' not found in VSCode

Asterisk14 opened this issue · 6 comments

While Type: Hugging Face Code: Set API token in VSCode (Mac OS) getting
Command 'Hugging Face Code: Set API token' resulted in an error (command 'HuggingFaceCode::setApiToken' not found)

I ran it as described but got the same error.

got same error

Me also, the same error (VS CODE Windows 10)

I just ran into this.
OS: Mac OS 13.5.2
VSCode: 1.82.0
HF Code Autocomplete: v0.0.38
I disabled Google Cloud Code, restarted VSCode, and was able to add my HF API key.
When I updated VSCode Duet AI (Google Cloud Code) had been enabled by default. There seems to be an incompatibility between HF Code Autocomplete and Google Cloud Code.
Hope that helps!

@wmchurchill3 It worked fine! Thanks for the info!

The login command will change in the upcoming release. Feel free to open another issue if the problem persists.