Threadviewer is a Go command-line application designed to load a given assistant thread by ID and print it to the stdout with markdown formatting suitable for terminal rendering.
- Loads threads using the OpenAI API.
- Formats and prints threads with markdown rendering.
- Uses Cobra for command-line parsing.
- Uses Viper for configuration management, including automatic environment variable binding.
- OpenAI API Key.
eget harnyk/threadviewer
Download a binary from the releases page and place it in a directory on your PATH.
The configuration file is located in the current directory or at <config>/config/.threadviewer.yaml
and is in YAML format. You can specify the config file path using the --config
flag.
Example config file:
API_KEY: your_openai_api_key
./threadviewer <thread_id>
<thread_id>
: Thread ID to retrieve.
--apiKey
: OpenAI API Key.--config
: Config file path.
API_KEY
: OpenAI API Key.
This project is licensed under the WTFPL License.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes and commit them:
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature-branch
- Submit a pull request.