README.md in openai_101-1.0.0 vs README.md in openai_101-1.2.0
- old
+ new
@@ -1,25 +1,9 @@
-DAVID: Check this out, should add it into the openAI course:
-
-https://www.loom.com/share/117eb552f1974f3d8e28463e9f1809e1
-
-Based on:
-
-https://innovate-aiml-data-apj.virtual.awsevents.com/media/10.%20Codenator%3A%20Enhancing%20user%20productivity%20through%20AI-powered%20code%20generation%20and%20secure%20execution/1_0kzrwmxu/330865472
-
-
-
# Openai 101
-> OpenAI 101 Series on using OpenAI ChatGPT, DALLĀ·E, and other OpenAI endpoints
+> OpenAI 101 working through the API endpoints
-**Focus Story**
-
-As a software developer, I want to understand OpenAI endpoints and capabilities, so that I can use ChatGPT effectively
-
-
-
## Installation
Add this line to your application's Gemfile:
```ruby
@@ -36,86 +20,78 @@
```bash
gem install openai_101
```
-## JavaScript Dependencies Installation
+## Stories
-This optional step is only required if you plan to use the JavaScript tools included in this gem from the command line.
+### Main Story
-[Javascript Tools]
+As a Developer, I want to understand openai/chatgpt APIs, so that I can build AI applications effectively
-This gem includes tools written in JavaScript, requiring Node.js and associated packages. After installing the gem, navigate to the gem's root directory and run:
+See all [stories](./STORIES.md)
-```bash
-npm install
-```
-## Resources
+## Usage
-- [Course Outline](./COURSE.md)
-- [OpenAI Documentation](gpt-context/openai-documentation.md) is used as reference material for code generation prompts, this information has been summarized from source documentation
-- [Ruby OpenAI Documentation](gpt-context/ruby-openai-documenation.md) is used as reference material for code generation prompts and shows examples of how to use the Ruby OpenAI gem
+See all [usage examples](./USAGE.md)
-See all [stories](./STORIES.md)
## Development
Checkout the repo
```bash
-git clone https://github.com/klueless-io/openai_101
+git clone https://github.com/appydave/openai_101
```
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
-## Command line tools
+```bash
+bin/console
-### Bulk MidJourney Image Generation
+Aaa::Bbb::Program.execute()
+# => ""
+```
-Automates MidJourney prompts on Discord.
+`openai_101` is setup with Guard, run `guard`, this will watch development file changes and run tests automatically, if successful, it will then run rubocop for style quality.
-`automate-images-midjourney`
+To release a new version, update the version number in `version.rb`, build the gem and push the `.gem` file to [rubygems.org](https://rubygems.org).
-This tool will read prompts from a file and then paste them into the MidJourney Discord channel in an unattented manner. This is useful for automating the process of generating images from prompts in bulk. NOTE: You start the script and then you place the cursor in the Discord channel and the script will do the rest.
+```bash
+rake publish
+rake clean
+```
-### Bulk ChatGPT Image Generation
+## Git helpers used by this project
-Automates image prompts in ChatGPT.
+Add the follow helpers to your `alias` file
-`automate-images-chatgpt`
-
-This tool will read prompts from a file and then paste them into the current focused ChatGPT window in unattented mode. This is useful for automating the process of generating images from prompts in bulk using the DALE-3 feature in ChatGPT Plus. NOTE: You start the script and then you place the cursor in the ChatGPT window and the script will do the rest.
-
-### WEBP to PNG Converter:
-
-Converts WEBP images to PNG, manages prompts.
-
-`web3_to_png`
-
-### EDL to Chapters
-
-Converts EDL time codes to chapters in YouTube video description.
-
-`edl_to_chapters`
-
-Usage on Mac
```bash
-# make the script executable
-chmod +x bin/convert_webp_to_png.rb
-
-# run the script
-./bin/convert_webp_to_png.rb -s path/to/source -t path/to/target -f target_filename -p optional_prefix
-
-# Example
-./bin/convert_webp_to_png.rb -p series-2 -f woman-grey-tabby-cat -s /Users/davidcruwys/Sync/smart-downloads/download-images
- -t /Volumes/Expansion/Sync/tube-channels/a-cast/cast-active/a35-automate-image-generation/assets
+function kcommit()
+{
+ echo 'git add .'
+ git add .
+ echo "git commit -m "$1""
+ git commit -m "$1"
+ echo 'git pull'
+ git pull
+ echo 'git push'
+ git push
+ sleep 3
+ run_id="$(gh run list --limit 1 | grep -Eo "[0-9]{9,11}")"
+ gh run watch $run_id --exit-status && echo "run completed and successful" && git pull && git tag | sort -V | tail -1
+}
+function kchore () { kcommit "chore: $1" }
+function kdocs () { kcommit "docs: $1" }
+function kfix () { kcommit "fix: $1" }
+function kfeat () { kcommit "feat: $1" }
+function ktest () { kcommit "test: $1" }
+function krefactor () { kcommit "refactor: $1" }
```
-
-This tool automates the conversion of WEBP images to PNG format, stores associated prompts, manages source backups, and cleans up after processing.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/klueless-io/openai_101. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.