JudiniLabs / code-gpt-docs

Docusaurus page
https://code-gpt-docs.vercel.app
MIT License
581 stars 63 forks source link

Autocomplete is not working #228

Open rajeev-sanyal opened 9 months ago

rajeev-sanyal commented 9 months ago

Installed 3.17 version. Although the chat feature is working with ChatGPT, the autocomplete is not working openai-gpt-3.5-turbo. Enabled the settings for auto-complete as per the docs. Getting error "Source: Code GPT: Chat & AI agents" when Ctrl + Shift + I is pressed

PilarHidalgo commented 9 months ago

Hi @rajeev-sanyal! , we have new features and docs, check it here: https://docs.codegpt.co/docs/tutorial-ai-providers/codegptplus_v2. Also, if you are using OpenAI as provider, OpenAI API Key is mandatory to use it. Remember that CodeGPTPlus give you access to gpt-3.5 turbo among others from OpenAI.

om-livebird commented 5 months ago

I am getting same error, and I am using Ollama llama3. How do I solve this Error?

llagerlof commented 4 months ago

For me the CodeGPT Chat is working for llama3, but autocomplete is not working.

I downloaded the models llama3:instruct and llama3:8b. Ollama is running and answering my requests.

This are my codegpt chat config: Provider: Ollama / Model: llama3

These are my CodeGPT config:

    "CodeGPT.Autocomplete.provider": "Ollama - codellama",
    "CodeGPT.Autocomplete.enabled": true,
    "CodeGPT.apiKey": "Ollama"

When I open a code file the little lamp in vscode bottom-right is appearing normal. When I start typing and wait the default 3000 milesseconds, the little lamp turn itself into an alert triangle showing the message "CodeGPT - Copilot - Working", but never ends and don't complete anything.

davila7 commented 4 months ago

@llagerlof you need to use codellama:code to use the autocomplete option.

run this command: ollama pull codellama:code

More info: https://ollama.com/library/codellama:code

then select codellama:code

Screenshot 2024-07-19 at 12 51 35
llagerlof commented 4 months ago

@davila7

Thank you.

However I just saw that "codellama is built on top of Llama 2"

I think I will just wait for codellama for llama3.

davila7 commented 4 months ago

@llagerlof

I recommend using codestral for autocomplete, it's pretty good.

https://ollama.com/library/codestral