Open BruceMa29 opened 10 months ago
I couldn't get it to work either, I got this error from IDE :
java.lang.AbstractMethodError: Receiver class co.huggingface.llmintellij.LlmLsCompletionProvider does not define or inherit an implementation of the resolved method 'abstract boolean isEnabled(com.intellij.openapi.editor.event.DocumentEvent)' of interface com.intellij.codeInsight.inline.completion.InlineCompletionProvider.
My token works, I managed to run this :
import requests
API_URL = "https://api-inference.huggingface.co/models/bigcode/starcoder"
headers = {"Authorization": "Bearer hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
output = query({
"inputs": "for my_list in ",
})
I work with PyCharm CE 2023.2. Here are LLM plugin settings :
I couldn't get it to work either, I got this error from IDE :
java.lang.AbstractMethodError: Receiver class co.huggingface.llmintellij.LlmLsCompletionProvider does not define or inherit an implementation of the resolved method 'abstract boolean isEnabled(com.intellij.openapi.editor.event.DocumentEvent)' of interface com.intellij.codeInsight.inline.completion.InlineCompletionProvider.
My token works, I managed to run this :
import requests API_URL = "https://api-inference.huggingface.co/models/bigcode/starcoder" headers = {"Authorization": "Bearer hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"} def query(payload): response = requests.post(API_URL, headers=headers, json=payload) return response.json() output = query({ "inputs": "for my_list in ", })
I work with PyCharm CE 2023.2. Here are LLM plugin settings :
same issue...
Hi, Does this plugin support intellij idea community version?