Spaces:
Sleeping
Sleeping
Quickstart: AI Chat Window
Prerequisites
- OpenRouter Key: Get an API key from openrouter.ai.
- Environment: Set
OPENROUTER_API_KEYinbackend/.env.
Testing the Backend
- Start Server:
cd backend source .venv/bin/activate uvicorn src.api.main:app --reload - Test Endpoint:
Note: This will output raw SSE stream data.curl -X POST http://localhost:8000/api/chat \ -H "Content-Type: application/json" \ -d '{"message": "Hello", "history": []}'
Testing the Frontend
- Start Client:
cd frontend npm run dev - Open UI: Go to
http://localhost:5173. - Chat: Click the "Chat" button in the sidebar. Select a persona and send a message.
Verification
- Check Logs: After a chat, check
data/vaults/{user}/Chat Logs/to see the saved Markdown file.