continue icon indicating copy to clipboard operation
continue copied to clipboard

Autocomplet: missing context from other functions causing faulty suggestions on function calling

Open rogeroberg opened this issue 6 months ago • 0 comments

Before submitting your bug report

Relevant environment info

- OS: Windows
- Continue version: 1.0.13
- IDE version: intellij ultimate 2025.1
- Model: Qwen2.5-Coder-1.5B
- config:
  : Local Assistant
version: 1.0.0
schema: v1
  
models:
  - name: nomic-embed-text
    provider: ollama
    model: nomic-embed-text
    roles:
      - embed
    apiBase: https://ollama.xx.xx/
    apiKey: ''

  - name: Qwen2.5-Coder-1.5B
    provider: vllm
    model: Qwen/Qwen2.5-Coder-1.5B
    roles:
        - autocomplete
    apiBase: https://vllm.xx.xx/v1
    apiKey: ''
    defaultCompletionOptions:
        contextLength: 32768
        
  - name: Qwen2.5-Coder-14B-Instruct-fp16
    provider: ollama
    model: qwen2.5-coder:14b-instruct-fp16
    roles:
     - chat
     - edit
     - apply
    apiBase: https://ollama.xx.xx/
    apiKey: ''
   
context:
  - provider: code
  - provider: docs
  - provider: diff
  - provider: terminal
  - provider: problems
  - provider: folder
  - provider: codebase

Description

I have just create a simple application in java which references a calculator class to do addition with 3 variables. However the autocompete suggestion only gives you 2 variables which then will of course fail to compile. Looking at the prompt logs it seems like no code from the calculator class is included in the prompt which it should?

prompt.log

Main.java.txt

Calculator.java.txt

config.yaml.txt

To reproduce

Image

Log output


rogeroberg avatar Apr 25 '25 14:04 rogeroberg