mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
Merge pull request #1760 from better629/main
hello_world example compatibility
This commit is contained in:
commit
79390a2824
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ from metagpt.logs import logger
|
|||
async def ask_and_print(question: str, llm: LLM, system_prompt) -> str:
|
||||
logger.info(f"Q: {question}")
|
||||
rsp = await llm.aask(question, system_msgs=[system_prompt], stream=True)
|
||||
if llm.reasoning_content:
|
||||
if hasattr(llm, "reasoning_content") and llm.reasoning_content:
|
||||
logger.info(f"A reasoning: {llm.reasoning_content}")
|
||||
logger.info(f"A: {rsp}")
|
||||
return rsp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue