Enhance Ollama interface compatibility
This commit is contained in:
parent
7b07d4c917
commit
9351b09cc7
1 changed files with 5 additions and 0 deletions
|
|
@ -579,6 +579,11 @@ class OllamaAPI:
|
|||
data = {
|
||||
"model": self.ollama_server_infos.LIGHTRAG_MODEL,
|
||||
"created_at": self.ollama_server_infos.LIGHTRAG_CREATED_AT,
|
||||
"message": {
|
||||
"role": "assistant",
|
||||
"content": "",
|
||||
"images": None,
|
||||
},
|
||||
"done": True,
|
||||
"total_duration": total_time,
|
||||
"load_duration": 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue