Skip to content

Autocomplete always produces syntax errors with qwen2.5-coder:7b (Ollama) in VS Code #10751

@HireHoffee

Description

@HireHoffee

Before submitting your bug report

Relevant environment info

- OS:
- Continue version:
- IDE version:
- Model:
- config:
  

  
  OR link to agent in Continue hub:

Description

When using autocomplete in VS Code with Continue.dev and qwen2.5-coder:7b via Ollama, the generated completion frequently results in syntax errors.

The model often:

  • Leaves unclosed brackets ({, ()
  • Duplicates closing braces (})
  • e.t.c

Config:

  • name: qwen2.5-coder:7b
    provider: ollama
    model: qwen2.5-coder:7b
    roles:
    • autocomplete
      defaultCompletionOptions:
      temperature: 0.3
      contextLength: 16000
      autocompleteOptions:
      useCache: true
      useImports: true
      useRecentlyEdited: true
      useRecentlyOpened: true
      maxPromptTokens: 2048
      prefixPercentage: 0.7
      maxSuffixPercentage: 0.3

Any suggestions how to fix this ?

To reproduce

No response

Log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:autocompleteRelates to the auto complete featureide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions