diff --git a/docs/sphinx_doc/en/source/tutorial/203-stream.md b/docs/sphinx_doc/en/source/tutorial/203-stream.md index 3a61ee121..ef154c745 100644 --- a/docs/sphinx_doc/en/source/tutorial/203-stream.md +++ b/docs/sphinx_doc/en/source/tutorial/203-stream.md @@ -61,6 +61,7 @@ After printing the streaming response, the full text of the response will be ava ```python def reply(self, x: Optional[Msg, Sequence[Msg]] = None) -> Msg: # ... + # Use stream=True if you want to set up streaming mode in model calling response = self.model(prompt) # For now, the response.text is None diff --git a/docs/sphinx_doc/zh_CN/source/tutorial/203-stream.md b/docs/sphinx_doc/zh_CN/source/tutorial/203-stream.md index 4bbc4493a..82df56371 100644 --- a/docs/sphinx_doc/zh_CN/source/tutorial/203-stream.md +++ b/docs/sphinx_doc/zh_CN/source/tutorial/203-stream.md @@ -58,6 +58,7 @@ class MyAgent(AgentBase): ```python def reply(self, x: Optional[Msg, Sequence[Msg]] = None) -> Msg: # ... + # 如果想在调用时使用流式打印,在这里调用时使用 stream=True response = self.model(prompt) # 程序运行到这里时,response.text 为 None