Skip to content

Commit

Permalink
feat: +recommend comments
Browse files Browse the repository at this point in the history
  • Loading branch information
莘权 马 committed May 10, 2024
1 parent b478e63 commit c5b2427
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/requirement_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
)
from metagpt.actions.requirement_analysis.namespaces import Namespaces
from metagpt.context import Context
from metagpt.logs import logger
from metagpt.roles import Role
from metagpt.schema import Message
from metagpt.utils.common import any_to_str, aread
Expand Down Expand Up @@ -95,6 +96,7 @@ def startup(
filename: str = typer.Argument(..., help="The filename of original text requirements."),
namespace: str = typer.Argument("RFC145", help="Namespace of this project."),
):
logger.info("GPT 3.5 turbo is recommended to save money")
ctx = Context()
ctx.kwargs.ns = Namespaces(namespace=namespace)
asyncio.run(analyze(ctx, filename))
Expand Down
2 changes: 2 additions & 0 deletions examples/requirement_breakdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from metagpt.actions.requirement_analysis.breakdown.patch_use_case import PatchUseCase
from metagpt.actions.requirement_analysis.namespaces import Namespaces
from metagpt.context import Context
from metagpt.logs import logger
from metagpt.roles import Role
from metagpt.schema import Message
from metagpt.utils.common import any_to_str, aread
Expand Down Expand Up @@ -76,6 +77,7 @@ def startup(
"Chinese", help="Which language should be used to write the report. The default language is Chinese."
),
):
logger.info("GPT 3.5 turbo is recommended to save money")
ctx = Context()
ctx.kwargs.ns = Namespaces(namespace=namespace)
ctx.kwargs.language = language
Expand Down

0 comments on commit c5b2427

Please sign in to comment.