Twegion is a React-based Twitter thread generator leveraging advanced AI models to create engaging and concise threads tailored to your preferences.
- Generate high-quality Twitter threads with minimal effort.
- Customize tone and style for a unique voice.
- Supports interactive and intuitive user input for real-time responses.
- Node.js (version 14 or higher)
- npm or yarn
- A valid Mistral API key
-
Clone this repository:
git clone https://github.com/forloopcodes/twegion.git cd twegion -
Install dependencies:
npm install
or
yarn install
-
Navigate to
./src/App.tsx. -
Locate the following code block:
const config = { method: "post", maxBodyLength: Infinity, url: "https://api.mistral.ai/v1/chat/completions", headers: { "Content-Type": "application/json", Authorization: `Bearer ${apiKey}`, // Replace this Accept: "application/json", }, data: data, };
-
Replace the API key with your own Mistral API key.
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5173.
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature-name
- Commit your changes and push them to your fork.
- Submit a pull request.
This project is licensed under the MIT License.
By customizing the API key and deploying Twegion, you're all set to generate compelling threads. 🚀