Преглед на файлове

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

bowen преди 5 месеца
родител
ревизия
645454f9c9
променени са 3 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 1 0
      code/chapter7/my_main.py
  2. 1 0
      docs/chapter7/Chapter7-Building-Your-Agent-Framework.md
  3. 1 0
      docs/chapter7/第七章 构建你的Agent框架.md

+ 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
 ```