add AnthropicAPI

This commit is contained in:
肖凌风 2023-07-21 13:17:26 -04:00
parent 4812a50cbd
commit 8c07be0e56
5 changed files with 44 additions and 3 deletions

View file

@ -9,11 +9,12 @@ import asyncio
from metagpt.logs import logger
from metagpt.llm import LLM
from metagpt.llm import Claude
async def main():
llm = LLM()
claude = Claude()
logger.info(await claude.aask('你好,请进行自我介绍'))
logger.info(await llm.aask('hello world'))
logger.info(await llm.aask_batch(['hi', 'write python hello world.']))