豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Observation: edit block takes a lot of token to repeat code that needs to be replaced #68

@xCatG

Description

@xCatG

I wouldn't call this a bug but more like asking for opinions; I observed that when editing block because LLM need to spit out the exact block that needs to be replaced, it caused a lot of wasted tokens while doing so.

However LLMs are also very bad at generating proper diff format due to they can't count correctly, so I don't have any alternatives to suggest. Do you know any methods for code replacement that is more accurate yet doesn't need to repeat tokens that need to be deleted?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions