llm-intellij icon indicating copy to clipboard operation
llm-intellij copied to clipboard

intellij idea community edition does not work

Open BruceMa29 opened this issue 1 year ago • 3 comments

Hi, Does this plugin support intellij idea community version?

BruceMa29 avatar Nov 16 '23 04:11 BruceMa29

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

Skyle-01 avatar Nov 17 '23 11:11 Skyle-01

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...

YingchaoX avatar Dec 26 '23 07:12 YingchaoX