Merge branch 'main' into code_interpreter

This commit is contained in:
garylin2099 2024-02-08 10:50:17 +08:00 committed by GitHub
commit e3bb4d548d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 319 additions and 574 deletions

View file

@ -13,18 +13,7 @@ from metagpt.logs import logger
async def main():
llm = LLM()
# llm type check
id_ques = "what's your name"
logger.info(f"{id_ques}: ")
logger.info(await llm.aask(id_ques))
logger.info("\n\n")
logger.info(
await llm.aask(
"who are you", system_msgs=["act as a robot, answer 'I'am robot' if the question is 'who are you'"]
)
)
logger.info(await llm.aask("hello world"))
logger.info(await llm.aask_batch(["hi", "write python hello world."]))
hello_msg = [{"role": "user", "content": "count from 1 to 10. split by newline."}]