- 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
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| api_utils.py | ||
| base64_image.py | ||
| commands.py | ||
| common.py | ||
| configs.py | ||
| crypt.py | ||
| email_templates.py | ||
| file_utils.py | ||
| health_utils.py | ||
| json_encode.py | ||
| log_utils.py | ||
| validation_utils.py | ||
| web_utils.py | ||