automaker / patch_api_docs.sh
Leon4gr45's picture
Upload folder using huggingface_hub (part 2)
dbdcaee verified
Raw History Blame Contribute Delete
415 Bytes
#!/bin/bash
sed -i '/path: '\''\/api\/projects'\''/i \
{\n method: '\''POST'\'',\n path: '\''/api/agent/chat'\'',\n purpose: '\''Send a message to the AI agent'\'',\n request: { message: '\''Hello agent'\'', projectPath: '\''/app/data/projects/my-project'\'' },\n response: { sessionId: '\''session-123'\'', status: '\''started'\'' },\n },' apps/server/src/api-docs.ts