GPT-4 Chat Session to Markdown Converter: A handy command-line tool that uses JQ to convert GPT-4 chat session JSON data into a more readable and visually appealing Markdown format.
View the Project on GitHub rabestro/gpt4-session-to-markdown
This script converts GPT-4 chat session JSON data to markdown format and adds YAML front matter to the top of the file to prepare it for publishing on a Jekyll site.
git clone https://github.com/rabestro/gpt4-session-to-markdown.git
cd gpt4-session-to-markdown
chmod +x post
./post <file.json>
Replace <file.json>
with the path to your GPT-4 chat session JSON file.
You can customize the script by modifying the following variables at the beginning of the post
script:
POSTS_DIR
: The directory where the generated markdown files will be saved. Default is ../_posts
.TIMEZONE
: The timezone to be used in the YAML front matter. Default is +0300
.CATEGORIES
: The categories to be used in the YAML front matter. Default is AI
.TAGS
: The tags to be used in the YAML front matter. Default is ai
.This project is licensed under the MIT License. See the LICENSE file for details.