Skip to content

Adds support for Octocoder for autocomplete#930

Merged
sestinj merged 1 commit into
continuedev:previewfrom
ajalexander:add-octocoder-support
Mar 6, 2024
Merged

Adds support for Octocoder for autocomplete#930
sestinj merged 1 commit into
continuedev:previewfrom
ajalexander:add-octocoder-support

Conversation

@ajalexander
Copy link
Copy Markdown
Contributor

This change adds support for Octocoder similar to the change for StarChat made in #847.

Current Issue

Similar to the issue fixed in #847, the model I'm working with is TheBloke/Octocoder-GPTQ. The "GPT" in that name is currently causing the extension to use the GPT template.

The change

By adding octocoder as one of the search strings alongside the starcoder models, the template code will now return the stableCodeFirmTemplate rather than the gptAutocompleteTemplate.

Testing

Prior to the change, the extension output would contain:

Your task is to complete the line at the end of this code block:
\```
def add(a, b
\```

The last line is incomplete, and you should provide the rest of that line. If the line is already complete, just return a new line. Otherwise, DO NOT provide explanation, a code block, or extra whitespace, just the code that should be added to the last line to complete it:

After the change, the extension output contains:

<fim_prefix>def add(a, b)<fim_suffix><fim_middle

@sestinj
Copy link
Copy Markdown
Contributor

sestinj commented Mar 6, 2024

nice catch, thanks for the fix! I haven't tried octocoder yet, lmk how it goes : )

@sestinj sestinj merged commit 4910856 into continuedev:preview Mar 6, 2024
@sestinj
Copy link
Copy Markdown
Contributor

sestinj commented May 15, 2025

Hi @ajalexander, yesterday we shared some updates with our contributors about how we're aiming to improve the contribution process. Part of this included the addition of a Contributor License Agreement (CLA) to protect both contributors and the project. We're reaching out to ask that previous contributors sign it.

Could you please take a moment to sign, or if you have any questions send me a message? (either here or nate@continue.dev would work)

To do so, you just need to post a comment below with the following text:

I have read the CLA Document and I hereby sign the CLA

❤️ Thank you for the work you've done on Continue, and let me know if you have any suggestions on how we can make the project even better!

@github-actions
Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants