mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 03:39:03 +08:00
fix: remove useless test code (#3122)
### What problem does this PR solve? remove useless test code ### Type of change - [X] Refactoring
This commit is contained in:
parent
60053e7b02
commit
3fa570f49b
@ -141,9 +141,6 @@ def list_convsersation():
|
||||
@validate_request("conversation_id", "messages")
|
||||
def completion():
|
||||
req = request.json
|
||||
# req = {"conversation_id": "9aaaca4c11d311efa461fa163e197198", "messages": [
|
||||
# {"role": "user", "content": "上海有吗?"}
|
||||
# ]}
|
||||
msg = []
|
||||
for m in req["messages"]:
|
||||
if m["role"] == "system":
|
||||
|
@ -76,9 +76,6 @@ def update(tenant_id,chat_id,session_id):
|
||||
@token_required
|
||||
def completion(tenant_id,chat_id):
|
||||
req = request.json
|
||||
# req = {"conversation_id": "9aaaca4c11d311efa461fa163e197198", "messages": [
|
||||
# {"role": "user", "content": "上海有吗?"}
|
||||
# ]}
|
||||
if not req.get("session_id"):
|
||||
conv = {
|
||||
"id": get_uuid(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user