Skip to content
New issue

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

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

Already on GitHub? # to your account

Can I customize the CompletionFormatter or skip it? #117

Open
daydaychen opened this issue Feb 17, 2025 · 2 comments
Open

Can I customize the CompletionFormatter or skip it? #117

daydaychen opened this issue Feb 17, 2025 · 2 comments

Comments

@daydaychen
Copy link

In Python code, when customizing the model interface and returning a standard code snippet, there is a warning that after CompletionFormatter.indentByColumn, the subsequent lines of multi-line completion will have an extra level of indentation.
Therefore, can we open up the option to customize the Formatter or skip the formatter by setting it to empty?

@daydaychen
Copy link
Author

@arshad-yaseen I have tried commenting out the code related to the formatter, and the indentation for multi-line completion became normal. I also attempted to modify the code for indentByColumn, but it was unsuccessful.

@arshad-yaseen
Copy link
Owner

arshad-yaseen commented Feb 17, 2025

@daydaychen Sure, I can remove it, It's not needed anymore, The LLM will indent it since i improved the prompt. It's time to remove the indentByColumn, I will do it and let's you know. Need to do some tests before pushing it!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants