Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autocomplete not work #3573

Open
3 tasks done
ysrotciv opened this issue Dec 31, 2024 · 1 comment
Open
3 tasks done

autocomplete not work #3573

ysrotciv opened this issue Dec 31, 2024 · 1 comment
Assignees
Labels
area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior

Comments

@ysrotciv
Copy link

ysrotciv commented Dec 31, 2024

Before submitting your bug report

Relevant environment info

- OS:macOS
- Continue version:0.0.83
- IDE version:PyCharm 2024.2.4 (Professional Edition)
- Model:deepseek-coder-6.7b-base
- config.json:
  
{
  "models": [
    {
      "title": "deepseek-coder-6.7b-instruct",
      "provider": "sagemaker",
      "region": "XXX",
      "model": "deepseek-ai-deepseek-coder-6-7b-instruc-XXX",
      "profile": "sagemaker",
      "modelArn": "arn:aws:sagemaker:XXX"
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit highlighted code"
    },
    {
      "name": "comment",
      "description": "Write comments for the highlighted code"
    },
    {
      "name": "share",
      "description": "Export the current chat session to markdown"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    }
  ],
  "customCommands": [
    {
      "name": "test",
      "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "tabAutocompleteModel": {
    "title": "deepseek-coder-6.7b-base",
    "provider": "sagemaker",
    "region": "XXX",
    "model": "deepseek-ai-deepseek-coder-6-7b-base-XXX",
    "profile": "sagemaker",
    "modelArn": "arn:aws:sagemaker:XXX"
  },
  "contextProviders": [
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "open",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    }
  ]
}


### Description

autocomplete not work
when I type "def add" in pycharm, nothing happened, and two log file show different result
I can find the correct result of autocomplete in prompt.log
But error in core.log

### To reproduce

1.type "def add" in pycharm
2.see error in core.log

### Log output

```Shell
prompt.log:
##### Completion options #####
{
  "contextLength": 200000,
  "model": "deepseek-ai-deepseek-coder-6-7b-base-2024-12-24-07-51-41-384",
  "maxTokens": 4096,
  "temperature": 0.01,
  "stop": [
    "<|fim▁begin|>",
    "<|fim▁hole|>",
    "<|fim▁end|>",
    "//",
    "<|end▁of▁sentence|>",
    "/src/",
    "#- coding: utf-8",
    ""
  ],
  "raw": true
}

##### Prompt #####
<|fim▁begin|>
# pythonProject/main.py
def add<|fim▁hole|><|fim▁end|>

Completion:




Completion:
(a, b):
    return a + b


def sub(a, b):
    return a - b

core.log:
Error generating autocompletion:  AbortError: Request aborted
@sestinj sestinj self-assigned this Dec 31, 2024
@dosubot dosubot bot added area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior labels Dec 31, 2024
@lkk214
Copy link
Contributor

lkk214 commented Dec 31, 2024

This issue may have been fixed in #3536, if just completion at the end of file content is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

4 participants