{"id":19692256,"url":"https://github.com/aesthetikx/quick_openai","last_synced_at":"2025-10-08T07:06:18.617Z","repository":{"id":65062410,"uuid":"578250259","full_name":"Aesthetikx/quick_openai","owner":"Aesthetikx","description":"Convenience extensions for using OpenAI with Ruby","archived":false,"fork":false,"pushed_at":"2025-04-18T14:42:13.000Z","size":138,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-26T04:53:34.444Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aesthetikx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-14T15:57:55.000Z","updated_at":"2025-04-18T14:42:17.000Z","dependencies_parsed_at":"2023-02-10T17:45:36.167Z","dependency_job_id":null,"html_url":"https://github.com/Aesthetikx/quick_openai","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aesthetikx%2Fquick_openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aesthetikx%2Fquick_openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aesthetikx%2Fquick_openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aesthetikx%2Fquick_openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aesthetikx","download_url":"https://codeload.github.com/Aesthetikx/quick_openai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251473306,"owners_count":21595035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T19:12:46.672Z","updated_at":"2025-10-08T07:06:13.585Z","avatar_url":"https://github.com/Aesthetikx.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QuickOpenAI\n\nThis gem is a wrapper of [ruby-openai](https://github.com/alexrudall/ruby-openai), providing quick convenience methods for experimenting with OpenAI language and image models.\n\n## Usage\n\nQuickly get results from GPT:\n\n```ruby\nputs \"Hello, what is your name?\".gpt\n# =\u003e My name is Aileen.\n```\n\nQuickly get images from DALLE:\n\n```ruby\n\"a drawing of a cat in a hat\".dalle.then { |tempfile|\n  File.write('./cat.png', tempfile.read)\n}\n```\n\u003cimg src=\"https://raw.githubusercontent.com/Aesthetikx/quick_openai/master/.github/cat.png\" height=256 width=256\u003e\u003c/img\u003e\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add quick_openai\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install quick_openai\n\n## Setup\n\nMake sure you have your OpenAI access token in ENV, and then require QuickOpenAI to include String extensions.\n```ruby\nENV['OPENAI_ACCESS_TOKEN'] = '12345'\n\nrequire 'quick_openai'\n```\n\n## Options\n\nYou can pass options supported by `ruby-openai` to the convenience methods:\n\n```ruby\n\"a drawing of a cat in a hat\".dalle(n: 2) # =\u003e An array of two tempfiles\n\n\"count to ten in italian\".gpt(model: 'gpt-4.5-preview') # Use a different model\n\n\"write me an essay on napoleon\".gpt(max_tokens: 2048) # Produce more or less output. The default is 2048.\n```\n\nRead more about GPT models [here](https://beta.openai.com/docs/models/gpt-3).\n\n## Development\n\nAfter 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.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/aesthetikx/quick_openai.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faesthetikx%2Fquick_openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faesthetikx%2Fquick_openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faesthetikx%2Fquick_openai/lists"}