🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
update dashscope stream output
better62941d6d2be1d26
diff --git a/metagpt/provider/dashscope_api.py b/metagpt/provider/dashscope_api.pyindex 58031e452..c02a302e4 100644--- a/metagpt/provider/dashscope_api.py+++ b/metagpt/provider/dashscope_api.py@@ -192,6 +192,8 @@ class DashScopeLLM(BaseLLM):if self.config.temperature > 0:# different model has default temperature. only set when it"s specified.kwargs["temperature"] = self.config.temperature+ if stream:+ kwargs["incremental_output"] = Truereturn kwargsdef _check_response(self, resp: GenerationResponse):diff --git a/requirements.txt b/requirements.txtindex cfac35717..9759248bb 100644--- a/requirements.txt+++ b/requirements.txt@@ -27,7 +27,7 @@ python_docx==0.8.11PyYAML==6.0.1# sentence_transformers==2.2.2setuptools==65.6.3-tenacity==8.2.2+tenacity==8.2.3tiktoken==0.5.2tqdm==4.65.0#unstructured[local-inference]@@ -68,4 +68,4 @@ anytreeipywidgets==8.1.1Pillowqianfan==0.3.1-dashscope==1.14.1+dashscope==1.14.1\ No newline at end of file