IgorKowalczyk / tweet-ai

🐦 Command line tool to automatically generate tweets using OpenAI API

Home Page:https://openai.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tweet-ai header


πŸ”© Setup

  1. Create an account on OpenAI and get your API key.
  2. Copy .env.example to .env.
  3. Fill the OPENAI_KEY and OPENAI_ORG variables in .env with your API key and organization ID.
  4. Install the dependencies with pnpm install.
  5. Run the script with pnpm start.

🧠 How it works

graph LR
A[User Input] --> B[OpenAI API]
B --> C[Text Generation]
C --> D[Generated Tweet]

πŸ“· Example

example.mp4

πŸ—œοΈ .env variables

OPENAI_KEY = "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
OPENAI_ORG = "org-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Note

You can find your API key and organization ID on OpenAI.

⁉️ Issues

If you have any issues with the page please create new issue here

πŸ“₯ Pull Requests

When submitting a pull request:

  • Clone the repo.
  • Create a branch off of master and give it a meaningful name (e.g. my-awesome-new-feature).
  • Open a pull request on GitHub and describe the feature or fix.

πŸ“‹ License

This project is licensed under the MIT. See the LICENSE file for details

About

🐦 Command line tool to automatically generate tweets using OpenAI API

https://openai.com/

License:MIT License


Languages

Language:JavaScript 100.0%