README.md in openai_101-0.2.0 vs README.md in openai_101-1.0.0

- old
+ new

@@ -1,9 +1,25 @@ +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 working through the API endpoints +> OpenAI 101 Series on using OpenAI ChatGPT, DALLĀ·E, and other OpenAI 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 @@ -20,78 +36,86 @@ ```bash gem install openai_101 ``` -## Stories +## JavaScript Dependencies Installation -### Main Story +This optional step is only required if you plan to use the JavaScript tools included in this gem from the command line. -As a Developer, I want to understand openai/chatgpt APIs, so that I can build AI applications effectively +[Javascript Tools] -See all [stories](./STORIES.md) +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: +```bash +npm install +``` -## Usage +## Resources -See all [usage examples](./USAGE.md) +- [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 [stories](./STORIES.md) ## Development Checkout the repo ```bash -git clone https://github.com/appydave/openai_101 +git clone https://github.com/klueless-io/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. -```bash -bin/console +## Command line tools -Aaa::Bbb::Program.execute() -# => "" -``` +### Bulk MidJourney Image Generation -`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. +Automates MidJourney prompts on Discord. -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). +`automate-images-midjourney` -```bash -rake publish -rake clean -``` +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. -## Git helpers used by this project +### Bulk ChatGPT Image Generation -Add the follow helpers to your `alias` file +Automates image prompts in ChatGPT. +`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 -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" } +# 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 ``` + +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.