Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct TextMessageCompressor's cache parameter initialising on import #68

Merged
merged 2 commits into from
Oct 20, 2024

Conversation

marklysze
Copy link
Collaborator

Why are these changes needed?

The TextMessageCompressor's cache parameter for __init__() has a default value of Cache.disk(). This is causing it to run on import rather than just on instantiation.

This PR changes the default to None and the Cache.disk() is executed within __init__.

Related issue number

Raised by @omarhurani, #63

Checks

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@marklysze marklysze changed the title TextMessageCompressor's cache parameter was initialising on import Correct TextMessageCompressor's cache parameter initialising on import Oct 19, 2024
@marklysze marklysze self-assigned this Oct 19, 2024
Copy link
Collaborator

@yiranwu0 yiranwu0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@omarhurani
Copy link

Tested it, no .cache dir is created when doing import autogen. Thanks!

@sonichi sonichi added this pull request to the merge queue Oct 20, 2024
Merged via the queue into main with commit 4dfb379 Oct 20, 2024
154 of 164 checks passed
@sonichi sonichi deleted the transformcachefix branch October 20, 2024 15:53
odoochain pushed a commit to odoochain/autogen that referenced this pull request Nov 10, 2024
* initial docs

* update docs

* Update agent.md

* Update memory.md

* Update runtime.md

---------

Co-authored-by: Jack Gerrits <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants