Skip to content

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

@rogeroberg

Description

@rogeroberg

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

Metadata

Metadata

Assignees

Labels

"needs-triage"area:autocompleteRelates to the auto complete featureide:jetbrainsRelates specifically to JetBrains extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions