SwiftChat Integration
This guide covers how to integrate EMD-deployed models with SwiftChat, a fast and responsive cross-platform AI chat application.
Overview
SwiftChat is a cross-platform AI chat application developed with React Native that supports multiple model providers, including OpenAI Compatible models. This makes it an excellent client for interacting with models deployed using Easy Model Deployer (EMD).
With SwiftChat, you can: - Chat with your EMD-deployed models in real-time with streaming responses - Use rich markdown features including tables, code blocks, and LaTeX - Access your models across Android, iOS, and macOS platforms - Enjoy a fast, responsive, and privacy-focused experience
Key Features of SwiftChat
- Real-time streaming chat with AI
- Rich Markdown support (tables, code blocks, LaTeX, etc.)
- AI image generation with progress indicators
- Multimodal support (images, videos & documents)
- Conversation history management
- Cross-platform support (Android, iOS, macOS)
- Tablet-optimized for iPad and Android tablets
- Multiple AI model providers supported
- Fully customizable system prompts
Integrating EMD Models with SwiftChat
EMD-deployed models can be easily integrated with SwiftChat through its OpenAI Compatible interface. This allows you to use your own deployed models with all the features and convenience of the SwiftChat application.
Prerequisites
- You have successfully deployed a model using EMD with the OpenAI Compatible API enabled
- You have installed SwiftChat on your device (Android, iOS, or macOS)
- You have the base URL and API key for your deployed model
Configuration Steps
- Open SwiftChat on your device
- Navigate to the Settings page
- Select the OpenAI tab
- Under OpenAI Compatible, enter the following information:
- Base URL: The endpoint URL of your EMD-deployed model (e.g.,
https://your-endpoint.execute-api.region.amazonaws.com
) - API Key: Your API key for accessing the model
- Model ID: The ID of your deployed model(s), separate multiple models with commas
- Select one of your models from the Text Model dropdown list
Example Use Cases
Once configured, you can use your EMD-deployed models in SwiftChat for various use cases:
- Text Generation: Chat with your models using the real-time streaming interface
- Code Generation: Ask your models to write or explain code, with proper syntax highlighting
- Document Analysis: Upload documents for your models to analyze (if multimodal models are supported)
- Image Understanding: Share images with vision-enabled models for analysis and discussion
Troubleshooting
If you encounter issues connecting to your EMD-deployed model:
- Verify that your model is properly deployed and running
- Check that the Base URL is correct and includes the full endpoint path
- Ensure your API key has the necessary permissions
- Confirm that your model ID exactly matches the deployed model's identifier
- Check network connectivity between your device and the model endpoint