mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-11-04 19:59:34 +00:00
Enhance Ollama interface compatibility
This commit is contained in:
parent
7b07d4c917
commit
9351b09cc7
@ -579,6 +579,11 @@ class OllamaAPI:
|
|||||||
data = {
|
data = {
|
||||||
"model": self.ollama_server_infos.LIGHTRAG_MODEL,
|
"model": self.ollama_server_infos.LIGHTRAG_MODEL,
|
||||||
"created_at": self.ollama_server_infos.LIGHTRAG_CREATED_AT,
|
"created_at": self.ollama_server_infos.LIGHTRAG_CREATED_AT,
|
||||||
|
"message": {
|
||||||
|
"role": "assistant",
|
||||||
|
"content": "",
|
||||||
|
"images": None,
|
||||||
|
},
|
||||||
"done": True,
|
"done": True,
|
||||||
"total_duration": total_time,
|
"total_duration": total_time,
|
||||||
"load_duration": 0,
|
"load_duration": 0,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user