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

Add settings to ignore backticks in AI code completion #14462

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JonasHelming
Copy link
Contributor

@JonasHelming JonasHelming commented Nov 16, 2024

fixed #14461

What it does

Adds a user setting to ignore backticks in LLM response for code completion. If a response starts with ```, it willremove opening and closing backticks and also remove any text after the closing backticks.

How to test

Use this prompt:
START_PROMPT

{{textUntilCurrentPosition}}[BLANK]{{textAfterCurrentPosition}}

Fill in the blank to complete the code block. Your response should include only the code to replace [BLANK], without surrounding backticks.
END_PROMPT
Or tweak the existing prompt by removing the order to only return the code.

Review checklist

Reminder for reviewers

@JonasHelming JonasHelming marked this pull request as draft November 16, 2024 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting on reviewers
Development

Successfully merging this pull request may close these issues.

[Theia AI] Setting to automatically remove backticks from LLM response
1 participant