Skip to content

[Feature]: Add Caching to avoid reruns #262

@ogabrielluiz

Description

@ogabrielluiz

Description

Cache exact matches to avoid having to generate the text again.
This happens often when a pre-commit hook stops the commit. If there's more than one file in the commit, the unchanged files should have the commit message ready since it was generated before.

Suggested Solution

A simple string matching database (Langchain has that implementation) should work.
Maybe a Sqlite database that gets cleaned up after 24 hours or something like that.

Alternatives

No response

Additional Context

No response

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