AI model square and chat with AI.
AI Tools is a cross-platform mobile application built with .NET MAUI that provides a unified interface to interact with multiple AI models including DeepSeek, Doubao, and Qwen. It supports text conversations, image and file attachments, user authentication, profile management, chat history persistence, and a model showcase gallery.
| Technology | Purpose |
|---|---|
| .NET MAUI | Cross-platform UI framework |
| C# | Backend logic and service layer |
| HttpClient | REST API communication with backend server |
| System.Text.Json | JSON serialization / deserialization |
| Preferences | Local storage for session data (login state, user info, avatar cache) |
| MediaPicker | Pick images from gallery for avatar upload and chat attachments |
| FilePicker | Attach any file to chat messages |
This app expects a backend server with the following endpoints (Spring Boot based):
GET /Users/selectByUsername?username=xxx
POST /Users/insertUserGET /Topics/selectByUserId?userId=xxx
POST /Topics/insertTopics
GET /Topics/incrementMessageCount?id=xxx
POST /ChatMessage/insertChatMessages
GET /ChatMessage/selectByTopicId?topicId=xxx
GET /ChatMessage/deleteByTopicId?topicId=xxx
GET /Topics/deleteByUserId?userId=xxxPOST /api/v1/email/send-code
POST /api/v1/email/verify-codePOST /UserProfiles/insertUserProfiles
GET /UserProfiles/selectById?userId=xxx
POST /UserProfiles/upload (multipart/form-data)
GET /UserProfiles/addHeadImage?userId=xxx&avatarUrl=xxx
GET /UserProfiles/download?name=xxxThe backend base URL is configured in ApiConfig.cs (default: http://your-server-ip-or-domain:port). Replace it with your own server address.
git clone https://github.com/Nathan-code-development/AIApplication.git
cd AIToolsThe file Services/AiApiService.cs contains hardcoded API keys for demonstration. Do not commit real keys to GitHub. Instead, replace them with your own keys or use a secure configuration system.
private const string DeepSeekApiKey = "your-deepseek-key";
private const string DoubaoApiKey = "your-doubao-key";
private const string QianwenApiKey = "your-qianwen-key";Alternatively, move keys to appsettings.json and use a configuration builder.
Edit Services/ApiConfig.cs:
public const string BaseUrl = "http://your-server-address:port";…This project is licensed under the MIT License – see the LICENSE file for details.
No open issues yet, or sync has not completed.