yangdx
commited on
Commit
·
afa5198
1
Parent(s):
d5d330d
将OllamaChatRequest的stream参数默认值改为True
Browse files
lightrag/api/lightrag_ollama.py
CHANGED
@@ -236,7 +236,7 @@ class OllamaMessage(BaseModel):
|
|
236 |
class OllamaChatRequest(BaseModel):
|
237 |
model: str = LIGHTRAG_MODEL
|
238 |
messages: List[OllamaMessage]
|
239 |
-
stream: bool =
|
240 |
options: Optional[Dict[str, Any]] = None
|
241 |
|
242 |
class OllamaChatResponse(BaseModel):
|
|
|
236 |
class OllamaChatRequest(BaseModel):
|
237 |
model: str = LIGHTRAG_MODEL
|
238 |
messages: List[OllamaMessage]
|
239 |
+
stream: bool = True # 默认为流式模式
|
240 |
options: Optional[Dict[str, Any]] = None
|
241 |
|
242 |
class OllamaChatResponse(BaseModel):
|