Skip to content

Commit 79390a2

Browse files
authored
Merge pull request #1760 from better629/main
hello_world example compatibility
2 parents b1cc2cf + edff9b2 commit 79390a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/hello_world.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
async def ask_and_print(question: str, llm: LLM, system_prompt) -> str:
1515
logger.info(f"Q: {question}")
1616
rsp = await llm.aask(question, system_msgs=[system_prompt], stream=True)
17-
if llm.reasoning_content:
17+
if hasattr(llm, "reasoning_content") and llm.reasoning_content:
1818
logger.info(f"A reasoning: {llm.reasoning_content}")
1919
logger.info(f"A: {rsp}")
2020
return rsp

0 commit comments

Comments
 (0)