Skip to content

ChatGPT - Code formatter #813

Open
@Zabuzard

Description

@Zabuzard

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.

Metadata

Metadata

Assignees

Labels

enhance commandModify or improve an existing command or group of commands of the botpriority: normal

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions