We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1cc2cf + edff9b2 commit 79390a2Copy full SHA for 79390a2
examples/hello_world.py
@@ -14,7 +14,7 @@
14
async def ask_and_print(question: str, llm: LLM, system_prompt) -> str:
15
logger.info(f"Q: {question}")
16
rsp = await llm.aask(question, system_msgs=[system_prompt], stream=True)
17
- if llm.reasoning_content:
+ if hasattr(llm, "reasoning_content") and llm.reasoning_content:
18
logger.info(f"A reasoning: {llm.reasoning_content}")
19
logger.info(f"A: {rsp}")
20
return rsp
0 commit comments