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