mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 13:33:48 +08:00
Refactor: completion -> completions (#14584)
### What problem does this PR solve? Keep only /completions, deprecated /completion ### Type of change - [x] Refactoring
This commit is contained in:
@@ -846,6 +846,7 @@ async def test_db_connection():
|
||||
|
||||
|
||||
@manager.route("/agents/chat/completion", methods=["POST"]) # noqa: F821
|
||||
@manager.route("/agents/chat/completions", methods=["POST"]) # noqa: F821
|
||||
@login_required
|
||||
@add_tenant_id_to_kwargs
|
||||
async def agent_chat_completion(tenant_id, agent_id=None):
|
||||
|
||||
Reference in New Issue
Block a user