View Code? Open in Web Editor
NEW
Command-line interface to ChatGPT that saves chats in a file
Python 94.66%
Dockerfile 5.34%
filed-chatgpt's Introduction
SchemaCrawler
filed-chatgpt's People
Contributors
filed-chatgpt's Issues
Design a YAML file format that can contain chat prompts and completions with essential ChatGPT API fields. The text of prompts and completions should be in Markdown. The YAML file should be readable in a standard Markdown viewer.
Create project folder structure, with place for code, tests, and resources. Create a main program with unit tests.
I don't think I got an invitation to the GitHub project, @sualeh could you share it?
Write output to YAML file using a YAML library.
Add unit tests.
Create a command-line Python project that can take arguments from the command-line
Add GitHub Actions to build a Docker container from it
Add GitHub Actions to deploy it to Docker Hub
Add command-line options using an options processing library, and print them from the application:
--api-key
and -k
for ChatGPT API key
--output-file
and -o
for output file path
--model
and -m
for ChatGPT model
Add unit tests for this functionality.
Create an automatic build with GitHub Actions to validate formatting, code conventions, and running unit tests.