- Overview
- Key Features
- Technical Architecture
- AI Model
- Data-Sourcing Techniques
- Installation and Setup
- Usage Instructions
- Customization
- Security Considerations
- Ethical AI Use
- Contributing
- Acknowledgments
TrumpAI is an innovative, interactive chat simulation powered by an advanced AI engine that utilizes over 70.000 tweets from Donald Trump. This platform allows users to engage in realistic, engaging dialogues with personalities etched in history, experiencing authentic interactions that reflect the unique rhetorical style and characteristics of Donald Trump
- Authentic Interaction: Simulate conversations with Donald Trump, Melania Trump, Ivanka Trump, and more, utilizing their distinctive communication styles.
- Dynamic AI Responses: Real-time message generation tailored to user inputs, ensuring an engaging conversational experience.
- Contextual Understanding: The AI maintains conversational context to deliver coherent interactions over multiple exchanges.
- Signature Phrases Integration: Enhance responses with iconic phrases and quips associated with Donald Trump, ensuring an immersive experience.
- Mobile and Desktop Compatibility: Fully responsive design to ensure accessibility across all devices.
- Framework: Pure JavaScript with ES6 features for seamless interactivity.
- HTML5/CSS3: Structured layout with modern styling techniques, ensuring accessibility and responsiveness.
- Fetch API: For real-time communication with the OpenRouter API to generate AI responses.
- OpenRouter.ai: Utilizes OpenRouter's capabilities to access powerful language models for generating responses in comibination with our Finetuned Style of Donald Trump
- Dataset: The AI model is trained and finetuned on a comprehensive dataset of 70.000 tweets, capturing the linguistic idiosyncrasies and conversational nuances of Donald Trump
- Response Generation: The AI is adept at producing concise, contextually relevant messages while mimicking the signature speech patterns of Donald Trump.
- Model Type: Leveraging state-of-the-art language models (same like GPT-3.5-turbo).
- Response Limits: Configured to deliver concise outputs, generally within 2-3 sentences.
The data for training the AI comes from multiple public sources, polished to ensure richness in conversational context. The following methodologies were employed:
- Collection: Aggregation of tweets, interviews, public statements, and related anecdotes.
- Preprocessing: Cleaning and normalizing input data to remove noise, enhance relevance, and structure it for model training.
- Tokenization and Vectorization: Transforming textual data into a format suitable for feeding into machine-learning models.
- Modern web browser (latest versions of Chrome, Firefox, Safari, or Edge)
- Valid OpenRouter API key
-
Clone the Repository
git clone https://github.com/trumpaichat/trumpai.git cd trumpai -
Integrate Your API Key
- Open
chat.jsand replace'your_openrouter_api_key_here'with your actual OpenRouter API key.
- Open
-
Open in Browser
- Open
index.htmlin a web browser to view and interact with the TrumpAI chat.
- Open
- Starting a Conversation: Type a message in the dialogue box and click the Send button or press Enter.
- Engaging Topics: Discuss various subjects such as politics, personal insights, or hypothetical questions.
- Dynamic Conversations: The AI maintains context to deliver relevant responses during the interaction.
Alter the styles in styles.css to personalize the appearance of the chat interface.
- Enhance the AI's Personality: Introduce new phrases and patterns to further enrich the conversational experience.
- Additional Members: Integrate more personas into the chat by tweaking the API prompts and sourcing more data.
- API Key Security: Ensure that your OpenRouter API key is never exposed in public repositories or client-side code directly. Ideally, this should be handled server-side in a production application.
- Data Protection: Adhere to GDPR and CCPA guidelines, maintaining user privacy and ethical data use policies.
- Transparency: Users should be aware they are interacting with an AI simulation based on real-world personalities.
- Responsible AI Development: Ensure that the AI behaves in socially acceptable ways, avoiding bias and inflammatory content.
We welcome contributions! Follow these steps to contribute:
- Fork the repository to start your own version of the project.
- Create a new branch:
git checkout -b feature/YourFeature - Commit your changes:
git commit -m 'Description of feature' - Push to your fork:
git push origin feature/YourFeature - Open a Pull Request to the main repository for review.
- OpenRouter.ai for providing the sophisticated language models that power TrumpAI.
- The community of developers and contributors who have provided invaluable insights and assistance.
- Documentation resources utilized during the development of this project.
- Donald Trump for Providing Data with his Tweets