Skip to content

system instructions to shorten 'existing_code' is polluting generated 'improved_code' #2086

@buddhamangler-cbre

Description

@buddhamangler-cbre

Git provider

Github Cloud

System Info

self hosted with modifications

Bug details

I have seen cases when the following portion of system instructions ...

When providing suggestions for long code sections, shorten the presented code with ellipsis (...) for brevity where possible.

is causing the llm to include the brevity "..." into it's code suggestion. For inline code comments that are directly commitable, the result is an "invalid" code suggestion include the "..." as part of its code suggestion.

I have tried various ways of prompt engineering out of it by modifying the prompt for 'improved_code' with limited success so for now I ended up removing the brevity instructions entirely. I don't exactly have a suggestion, but I did want to bring it to your attention.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions