소스 검색

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

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