ragflow/api/apps
SmartDever02 9ce780fefd refactor: Move WebSocket API to SDK pattern following session.py
- Moved websocket_app.py to api/apps/sdk/websocket.py
- Follows same structure as session.py for SDK endpoints
- Added ws_token_required decorator in api_utils.py (mirrors token_required)
- WebSocket endpoints now use SDK pattern:
  * @manager.websocket('/chats/<chat_id>/completions')
  * @manager.websocket('/agents/<agent_id>/completions')
- Removed old api/apps/websocket_app.py
- Added websockets>=14.0 and pytest-asyncio>=0.24.0 to test dependencies

Addresses reviewer feedback: websocket_app.py should mimic session.py in /api/sdk
for third-party calls, with /agents/<agent_id>/completions and
/chats/<chat_id>/completions endpoints similar to those in session.py
2025-12-05 01:32:00 -03:00
..
auth Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
sdk refactor: Move WebSocket API to SDK pattern following session.py 2025-12-05 01:32:00 -03:00
__init__.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
api_app.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
canvas_app.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
chunk_app.py Refa: make RAGFlow more asynchronous 2 (#11689) 2025-12-03 14:19:53 +08:00
connector_app.py Refa: make RAGFlow more asynchronous 2 (#11689) 2025-12-03 14:19:53 +08:00
conversation_app.py Refa: make RAGFlow more asynchronous 2 (#11689) 2025-12-03 14:19:53 +08:00
dialog_app.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
document_app.py Refa: make RAGFlow more asynchronous 2 (#11689) 2025-12-03 14:19:53 +08:00
evaluation_app.py Feat: RAG evaluation (#11674) 2025-12-03 17:00:58 +08:00
file2document_app.py Fix: file manager KB link issue. (#11648) 2025-12-02 12:14:27 +08:00
file_app.py Refa: make RAGFlow more asynchronous 2 (#11689) 2025-12-03 14:19:53 +08:00
kb_app.py Refa: make RAGFlow more asynchronous 2 (#11689) 2025-12-03 14:19:53 +08:00
langfuse_app.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
llm_app.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
mcp_server_app.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
plugin_app.py Feat: Alter flask to Quart for async API serving. (#11275) 2025-11-18 17:05:16 +08:00
search_app.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
system_app.py Feat: Alter flask to Quart for async API serving. (#11275) 2025-11-18 17:05:16 +08:00
tenant_app.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
user_app.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00