update logo and format code
This commit is contained in:
parent
38bb658031
commit
915aed17d1
@ -159,4 +159,4 @@ For answers to common questions about this code of conduct, see the FAQ at
|
|||||||
|
|
||||||
[FAQ]: https://www.contributor-covenant.org/faq
|
[FAQ]: https://www.contributor-covenant.org/faq
|
||||||
|
|
||||||
[translations]: https://www.contributor-covenant.org/translations
|
[translations]: https://www.contributor-covenant.org/translations
|
||||||
|
@ -4,7 +4,7 @@ English | [简体中文](README_zh.md)
|
|||||||
<a href="https://discord.gg/6dn7Sa3a"><img src="https://dcbadge.vercel.app/api/server/DYn29wFk9z?style=flat" alt="Discord Follow"></a>
|
<a href="https://discord.gg/6dn7Sa3a"><img src="https://dcbadge.vercel.app/api/server/DYn29wFk9z?style=flat" alt="Discord Follow"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
# OpenManus 👋
|
# 👋 OpenManus
|
||||||
|
|
||||||
Manus is incredible, but OpenManus can achieve any ideas without an Invite Code 🛫!
|
Manus is incredible, but OpenManus can achieve any ideas without an Invite Code 🛫!
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<a href="https://discord.gg/6dn7Sa3a"><img src="https://dcbadge.vercel.app/api/server/DYn29wFk9z?style=flat" alt="Discord Follow"></a>
|
<a href="https://discord.gg/6dn7Sa3a"><img src="https://dcbadge.vercel.app/api/server/DYn29wFk9z?style=flat" alt="Discord Follow"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
# OpenManus 👋
|
# 👋 OpenManus
|
||||||
|
|
||||||
Manus 非常棒,但 OpenManus 无需邀请码即可实现任何创意 🛫!
|
Manus 非常棒,但 OpenManus 无需邀请码即可实现任何创意 🛫!
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# Examples
|
# Examples
|
||||||
We put some examples in the `examples` directory. All the examples use the same prompt as [Manus](https://manus.im/?utm_source=ai-bot.cn).
|
|
||||||
|
We put some examples in the `examples` directory. All the examples use the same prompt
|
||||||
|
as [Manus](https://manus.im/?utm_source=ai-bot.cn).
|
||||||
|
|
||||||
The Model we use is `claude3.5`.
|
The Model we use is `claude3.5`.
|
||||||
|
|
||||||
@ -11,4 +13,4 @@ I need a 7-day Japan itinerary for April 15-23 from Seattle, with a $2500-5000 b
|
|||||||
**preview**:
|
**preview**:
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
@ -11,4 +11,4 @@ log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno
|
|||||||
log_cli_date_format = %Y-%m-%d %H:%M:%S
|
log_cli_date_format = %Y-%m-%d %H:%M:%S
|
||||||
|
|
||||||
# Make sure asyncio works properly
|
# Make sure asyncio works properly
|
||||||
asyncio_mode = auto
|
asyncio_mode = auto
|
||||||
|
12
run_flow.py
12
run_flow.py
@ -27,20 +27,22 @@ async def run_flow():
|
|||||||
logger.warning("Skipping empty prompt.")
|
logger.warning("Skipping empty prompt.")
|
||||||
continue
|
continue
|
||||||
logger.warning("Processing your request...")
|
logger.warning("Processing your request...")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
result = await asyncio.wait_for(
|
result = await asyncio.wait_for(
|
||||||
flow.execute(prompt),
|
flow.execute(prompt),
|
||||||
timeout=3600 # 60 minute timeout for the entire execution
|
timeout=3600, # 60 minute timeout for the entire execution
|
||||||
)
|
)
|
||||||
elapsed_time = time.time() - start_time
|
elapsed_time = time.time() - start_time
|
||||||
logger.info(f"Request processed in {elapsed_time:.2f} seconds")
|
logger.info(f"Request processed in {elapsed_time:.2f} seconds")
|
||||||
logger.info(result)
|
logger.info(result)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
logger.error("Request processing timed out after 1 hour")
|
logger.error("Request processing timed out after 1 hour")
|
||||||
logger.info("Operation terminated due to timeout. Please try a simpler request.")
|
logger.info(
|
||||||
|
"Operation terminated due to timeout. Please try a simpler request."
|
||||||
|
)
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
logger.info("Operation cancelled by user.")
|
logger.info("Operation cancelled by user.")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user