mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-20 15:38:09 +02:00
Revert "Feat add qianfan api support"
This commit is contained in:
parent
351b3ae8df
commit
5a2084cda8
28 changed files with 319 additions and 574 deletions
|
|
@ -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."}]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue