Browse Source

根据建议修改,保留原来代码作为注释

bowen 5 months ago
parent
commit
645454f9c9

+ 1 - 0
code/chapter7/my_main.py

@@ -18,4 +18,5 @@ response_stream = llm.think(messages)
 print("ModelScope Response:")
 for chunk in response_stream:
     # chunk在my_llm库中已经打印过一遍,这里只需要pass即可
+    # print(chunk, end="", flush=True)
     pass

+ 1 - 0
docs/chapter7/Chapter7-Building-Your-Agent-Framework.md

@@ -260,6 +260,7 @@ response_stream = llm.think(messages)
 print("ModelScope Response:")
 for chunk in response_stream:
     # Chunk already printed in my_llm, just pass here
+    # print(chunk, end="", flush=True)
     pass
 ```
 

+ 1 - 0
docs/chapter7/第七章 构建你的Agent框架.md

@@ -260,6 +260,7 @@ response_stream = llm.think(messages)
 print("ModelScope Response:")
 for chunk in response_stream:
     # chunk在my_llm库中已经打印过一遍,这里只需要pass即可
+    # print(chunk, end="", flush=True)
     pass
 ```