{"id":19314567,"url":"https://github.com/blue0513/chat-gpt-ruby","last_synced_at":"2026-03-14T22:37:39.185Z","repository":{"id":160432415,"uuid":"610376958","full_name":"blue0513/chat-gpt-ruby","owner":"blue0513","description":"Ruby CLI tool for communicating with ChatGPT","archived":false,"fork":false,"pushed_at":"2025-04-21T21:45:44.000Z","size":86,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T16:43:27.578Z","etag":null,"topics":["chatgpt","cli","ruby"],"latest_commit_sha":null,"homepage":"","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/blue0513.png","metadata":{"files":{"readme":"README.md","changelog":"history/empty.json","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-06T16:44:56.000Z","updated_at":"2025-03-03T22:11:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9a4d02e-188d-4858-90e4-f1365336093c","html_url":"https://github.com/blue0513/chat-gpt-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blue0513/chat-gpt-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blue0513%2Fchat-gpt-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blue0513%2Fchat-gpt-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blue0513%2Fchat-gpt-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blue0513%2Fchat-gpt-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blue0513","download_url":"https://codeload.github.com/blue0513/chat-gpt-ruby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blue0513%2Fchat-gpt-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30520681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-14T19:51:21.629Z","status":"ssl_error","status_checked_at":"2026-03-14T19:51:12.959Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["chatgpt","cli","ruby"],"created_at":"2024-11-10T00:44:43.726Z","updated_at":"2026-03-14T22:37:39.168Z","avatar_url":"https://github.com/blue0513.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chat-gpt-ruby\n\n[![CI](https://github.com/blue0513/chat-gpt-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/blue0513/chat-gpt-ruby/actions/workflows/ci.yml)\n\n\u003cimg src=\"https://user-images.githubusercontent.com/8979468/228260595-3d887fbf-4c7d-4b66-b50c-fb94b6688c39.gif\" width=\"600\"\u003e\n\nThis program allows for quick communication with ChatGPT, a customizable chatbot.   \nYou can customize the `model_profile` and `history` for a personalized chat experience.   \nThe `model_profile` is the AI's defined personality, and the `history` is the previous conversation between the user and ChatGPT.\n\n*Technically, the `model_profile` is a prompt with the `role` of `system`\n\n## Preparation\n\nTo set up the program, you need to set the `OPENAI_ACCESS_TOKEN` environment variable.  \nThis can be done by editing the `.envrc` file or by typing `export OPENAI_ACCESS_TOKEN`.\n\n## Quick Start\n\nTo start the program quickly, enter the following commands in the console:\n\n```console\n$ make install\n$ make quick\n```\n\nType your prompt, then hit `Ctrl+D` to send the prompt to ChatGPT.\n\n### Shortcuts\n\nThere are several useful shortcuts you can execute:\n\n- `dump`: Save the current conversation history to the file in `history/*.json`\n- `undo`: Undo the previous step of the conversation\n- `clear`: Erase all conversation history\n- `quit`: End the conversation\n\n## Advanced Usage\n\nTo access advanced options, run the following command:\n\n```console\n$ make run\n```\n\nHere, you can select your preferred `model_profile` and `history`.\n\n### Define model profile\n\nYou can define the personality of your preferred AI (model profile):\n\n```console\n$ cp model_profiles/model.txt.example model_profiles/model.txt\n\n# Edit the file as desired. This text will be used as the `role: system` message.\n$ vi model_profiles/model.txt\n```\n\nYou can add as many model profiles as you wish by adding `model_profiles/*.txt`.\n\n\n\n### Define history\n\nTo customize the conversation history:\n\n```console\n$ cp history/history.json.example history/history.json\n\n# Edit the file as desired. This JSON will be used as the conversation history.\n$ vi history/history.json\n```\n\nYou can add more histories by adding `history/*.json`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblue0513%2Fchat-gpt-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblue0513%2Fchat-gpt-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblue0513%2Fchat-gpt-ruby/lists"}