huggingface / llm-intellij

LLM powered development for IntelliJ
Apache License 2.0
65 stars 19 forks source link

intellij idea community edition does not work #11

Open BruceMa29 opened 10 months ago

BruceMa29 commented 10 months ago

Hi, Does this plugin support intellij idea community version?

Skyle-01 commented 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 : image

YingchaoX commented 8 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 : image

same issue...