From 8ef1248c761a2725014d889099e799bf194b532c Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 15 Jan 2025 20:54:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86OllamaChatRequest=E7=9A=84stream?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=BB=98=E8=AE=A4=E5=80=BC=E6=94=B9=E4=B8=BA?= =?UTF-8?q?True?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lightrag/api/lightrag_ollama.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/api/lightrag_ollama.py b/lightrag/api/lightrag_ollama.py index 3b92902f..54581a6f 100644 --- a/lightrag/api/lightrag_ollama.py +++ b/lightrag/api/lightrag_ollama.py @@ -236,7 +236,7 @@ class OllamaMessage(BaseModel): class OllamaChatRequest(BaseModel): model: str = LIGHTRAG_MODEL messages: List[OllamaMessage] - stream: bool = False + stream: bool = True # 默认为流式模式 options: Optional[Dict[str, Any]] = None class OllamaChatResponse(BaseModel):