链式调用 chain = few_shot_prompt_template | llm resp = chain.stream(input={"text":"thank you"}) for chunk in resp: print(chunk.content,end="")

链式调用
chain = few_shot_prompt_template | llm
resp = chain.stream(input={"text":"thank you"})
for chunk in resp:
print(chunk.content,end="")