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

Enhanced few code files in the main branch. #1522

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vignesh1507
Copy link

Key changes that i have made to the code are as follows:

  1. Exception Handling.
  2. Deprecation Warning.
  3. Logging.
  4. Auto-Archiving.

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?

@geekan
Copy link
Owner

geekan commented Oct 21, 2024

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 != "":
Copy link
Collaborator

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"]:
Copy link
Collaborator

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:
Copy link
Collaborator

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?

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