mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-19 22:21:04 +08:00
Refa: Chats /chat API to RESTFul (#13881)
### What problem does this PR solve? Refactor Chats /chat API to RESTFul. ### Type of change - [x] Refactoring
This commit is contained in:
@@ -54,5 +54,9 @@ class Base:
|
||||
res = self.rag.put(path, json)
|
||||
return res
|
||||
|
||||
def patch(self, path, json):
|
||||
res = self.rag.patch(path, json)
|
||||
return res
|
||||
|
||||
def __str__(self):
|
||||
return str(self.to_json())
|
||||
|
||||
Reference in New Issue
Block a user