ragflow/api/apps/sdk
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
..
agents.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
chat.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
dataset.py Feat: Alter flask to Quart for async API serving. (#11275) 2025-11-18 17:05:16 +08:00
dify_retrieval.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
doc.py fix(sdk): add cancel_all_task_of call in stop_parsing endpoint (#11748) 2025-12-04 19:29:06 +08:00
files.py Update since 'File manager' is renamed to 'File' (#11698) 2025-12-03 18:32:15 +08:00
session.py Refa: make RAGFlow more asynchronous 2 (#11689) 2025-12-03 14:19:53 +08:00
websocket.py refactor: Move WebSocket API to SDK pattern following session.py 2025-12-05 01:32:00 -03:00