Fix linting
This commit is contained in:
@@ -1803,9 +1803,9 @@ def create_app(args):
|
||||
"message": {
|
||||
"role": "assistant",
|
||||
"content": f"\n\nError: {error_msg}",
|
||||
"images": None
|
||||
"images": None,
|
||||
},
|
||||
"done": False
|
||||
"done": False,
|
||||
}
|
||||
yield f"{json.dumps(error_data, ensure_ascii=False)}\n"
|
||||
|
||||
@@ -1845,10 +1845,7 @@ def create_app(args):
|
||||
error_data = {
|
||||
"model": ollama_server_infos.LIGHTRAG_MODEL,
|
||||
"created_at": ollama_server_infos.LIGHTRAG_CREATED_AT,
|
||||
"error": {
|
||||
"code": "STREAM_ERROR",
|
||||
"message": error_msg
|
||||
},
|
||||
"error": {"code": "STREAM_ERROR", "message": error_msg},
|
||||
}
|
||||
yield f"{json.dumps(error_data, ensure_ascii=False)}\n"
|
||||
|
||||
|
Reference in New Issue
Block a user