Skip to content

An experimental Rust server automatically creating blog posts based on the URL using ChatGPT or Claude.

License

Notifications You must be signed in to change notification settings

syeo66/autoblogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autoblogger

Autoblogger is a simple blogging platform that generates blog posts using the ChatGPT language model. Please note that the generated content is based on AI-generated responses and may not always be accurate, reliable, or factual. The code provided here is for demonstration purposes only and comes with the following warnings and limitations:

  • Hallucination: The AI model used by Autoblogger may sometimes generate text that is creative but not necessarily grounded in reality. The generated content should be carefully reviewed and fact-checked before publishing.

  • Inaccuracies: The AI model may produce incorrect or misleading information. It is essential to verify the generated content and ensure its accuracy before relying on it.

  • Costs: The Autoblogger code interacts with paid APIs. This will incur costs depending on your usage. Make sure to review the pricing and terms of service of the API in use before deploying this code in production or on public servers.

  • Not suitable for public servers: Due to the potential inaccuracies and hallucinations in the generated content, it is strongly recommended not to use Autoblogger on public servers or platforms where the generated content is accessible to a wide audience. It is more suitable for personal use or controlled environments where the content can be reviewed and verified before publication.

Please exercise caution and use this code responsibly. OpenAI's guidelines and best practices should be followed when deploying AI-generated content.

Installation

  1. Clone the repository:

    git clone https://github.com/syeo66/autoblogger.git
  2. Navigate to the project directory:

    cd autoblogger
  3. Install the dependencies:

    cargo build

Usage

  1. Set the AI_MODEL environment variable to gpt4, claude3 or claude4

  2. Set the OPENAI_API_KEY environment variable with your OpenAI API key, or use ANTHROPIC_API_KEY if you use the Claude model:

    export OPENAI_API_KEY=your-api-key

    or

    export ANTHROPIC_API_KEY=your-api-key
  3. Optionally configure additional settings:

    export SERVER_PORT=3000        # Optional: Server port (default: 3000)
    export DB_PATH=./blog.db       # Optional: Database path (default: ./blog.db)
  4. Start the autoblogger server:

    cargo run
  5. Access the autoblogger web interface by opening http://localhost:3000 in your web browser.

  6. Create a blog post by opening http://localhost:3000/<some-slug-describing-the-article-to-be-generated>

  7. The generated blog post will be displayed on the webpage and stored in the ./blog.db SQLite database.

License

This project is licensed under the MIT License.

About

An experimental Rust server automatically creating blog posts based on the URL using ChatGPT or Claude.

Topics

Resources

License

Stars

Watchers

Forks

Languages