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

feat: add caching and benchmark #417

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ pytest-mock==3.11.1
open-interpreter==0.1.4; python_version>"3.9"
ta==0.10.2
semantic-kernel==0.3.10.dev0

parea-ai
7 changes: 7 additions & 0 deletions startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import asyncio

import fire
from parea import init, RedisCache

from metagpt.roles import (
Architect,
Expand All @@ -14,6 +15,12 @@
from metagpt.software_company import SoftwareCompany


# set this to True to use caching of LLM calls and being able to benchmark function across many inputs in parallel
IS_DEV = True
if IS_DEV:
init(cache=RedisCache())


async def startup(
idea: str,
investment: float = 3.0,
Expand Down