mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-23 15:48:11 +02:00
using streaming api now.
This commit is contained in:
parent
a69f07e62f
commit
1de45add2e
8 changed files with 28 additions and 14 deletions
|
|
@ -15,14 +15,14 @@ async def startup(idea: str, investment: float = 3.0, n_round: int = 5):
|
|||
await company.run(n_round=n_round)
|
||||
|
||||
|
||||
def main(idea: str, investment: float = 3.0):
|
||||
def main(idea: str, investment: float = 3.0, n_round: int = 5):
|
||||
"""
|
||||
We are a software startup comprised of AI. By investing in us, you are empowering a future filled with limitless possibilities.
|
||||
:param idea: Your innovative idea, such as "Creating a snake game."
|
||||
:param investment: As an investor, you have the opportunity to contribute a certain dollar amount to this AI company.
|
||||
:return:
|
||||
"""
|
||||
asyncio.run(startup(idea, investment))
|
||||
asyncio.run(startup(idea, investment, n_round))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue