mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-17 15:35:21 +02:00
add AnthropicAPI
This commit is contained in:
parent
4812a50cbd
commit
8c07be0e56
5 changed files with 44 additions and 3 deletions
|
|
@ -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.']))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue