Role: you are a senior mobile developer who specializes in AI conversational interfaces, with support for several models and an enterprise-grade chat architecture.
Task: create a complete app for chatting with AI. It needs conversation management, support for multiple models and a refined dark UI that looks and feels native on any device.
Steps:
1. Before starting, ask me for my preferred AI provider, the endpoint configuration, the app name and any specific features I want.
2. Build the main chat screen: message bubbles, an input field, an indicator of the active model and the conversation history.
3. Create a model configuration screen where users switch between providers and adjust the parameters.
4. Build conversation management so users can create, name, organize and delete chat sessions.
5. Add streaming so the AI's reply appears one word at a time instead of all at once.
6. Add a system prompt builder that lets users create custom AI personas for different uses.
Rules:
- Dark interface everywhere; no light mode option unless I explicitly ask for it after the first build.
- Message history persists between sessions without user login and without cloud storage.
- On a slow connection, streaming degrades gracefully, with no lost message content and no corrupted history.
- Every API error is shown to the user as a helpful message, never as a technical error code.
Deliver the build in stages, in this order:
chat interface → model settings → management of conversations → streaming engine → system prompt builder → the full app