-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Enhanced few code files in the main branch. #1522
base: main
Are you sure you want to change the base?
Conversation
Since these changes involve different modules, I invite relevant developers to serve as reviewers |
@@ -39,9 +38,6 @@ def generate_repo( | |||
) | |||
from metagpt.team import Team | |||
|
|||
if config.agentops_api_key != "": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was agentops removed?
global _llm_stream_log | ||
_llm_stream_log = func | ||
|
||
|
||
def _llm_stream_log(msg): | ||
if _print_level in ["INFO"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this changes have reverted the feature introduced in PR #1124, which allowed the define_log_level
method to control stream logging via the print_level
parameter. Could you please clarify the reason for this change?
self._check_balance() | ||
try: | ||
self._check_balance() | ||
except NoMoneyException as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already has a serialize_decorator
, should we add this?
Key changes that i have made to the code are as follows:
This updated version includes more robust handling for running out of funds and provides better logging for project execution.
Made changes as you suggested @geekan, could you please review this PR?