TJ-Bot icon indicating copy to clipboard operation
TJ-Bot copied to clipboard

ChatGPT - Code formatter

Open Zabuzard opened this issue 3 years ago • 1 comments

We have a code formatting feature, somewhere around CodeAction (FormatterCodeAction maybe?).

The existing formatter is totally fine, but we should add a ChatGPT powered layer before it. If the ChatGPT service (OpenAiService) returns Optional.empty(), the code should fall back to our existing formatter instead.

To save money, the feature should not consider the ChatGPT layer for really long code.

Care must be taken that ChatGPT only formats the code and doesnt otherwise change it.

Zabuzard avatar Mar 25 '23 19:03 Zabuzard

This issue is stale because it has been open 30 days with no activity. Remove stale label, comment or add the valid label or this will be closed in 5 days.

github-actions[bot] avatar Apr 25 '23 07:04 github-actions[bot]