fix conflict with main

This commit is contained in:
betterwang 2024-02-27 18:18:14 +08:00
commit d2ab17098b
14 changed files with 756 additions and 5 deletions

View file

@ -13,7 +13,18 @@ from metagpt.logs import logger
async def main():
llm = LLM()
logger.info(await llm.aask("hello world"))
# 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, just answer 'I'am robot' if the question is 'who are you'"]
)
)
logger.info(await llm.aask_batch(["hi", "write python hello world."]))
hello_msg = [{"role": "user", "content": "count from 1 to 10. split by newline."}]