{"id":13788304,"url":"https://github.com/formulahendry/openai-examples","last_synced_at":"2025-10-08T05:09:10.170Z","repository":{"id":85969204,"uuid":"585011237","full_name":"formulahendry/openai-examples","owner":"formulahendry","description":"Code Samples for OpenAI \u0026 ChatGPT API","archived":false,"fork":false,"pushed_at":"2023-05-02T20:51:14.000Z","size":12,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T09:51:14.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/formulahendry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-01-04T04:51:38.000Z","updated_at":"2025-01-22T16:19:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd4767ce-b1eb-474c-ad66-eea9e3015f02","html_url":"https://github.com/formulahendry/openai-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fopenai-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fopenai-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fopenai-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fopenai-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/formulahendry","download_url":"https://codeload.github.com/formulahendry/openai-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249220841,"owners_count":21232421,"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-08-03T21:00:43.215Z","updated_at":"2025-10-08T05:09:05.140Z","avatar_url":"https://github.com/formulahendry.png","language":"JavaScript","funding_links":[],"categories":["Developers"],"sub_categories":["LLM (Large Language Model)"],"readme":"# Code Samples for OpenAI \u0026 ChatGPT API\r\n\r\nThis repo contains code samples using the [OpenAI API](https://beta.openai.com/docs/introduction).\r\n\r\n## Setup\r\n\r\n1. If you don’t have Node.js installed, [install it from here](https://nodejs.org/en/)\r\n\r\n1. Clone this repository\r\n\r\n1. Install the requirements\r\n\r\n   ```bash\r\n   $ npm install\r\n   ```\r\n\r\n1. Make a copy of the example environment variables file\r\n\r\n   On Linux systems: \r\n   ```bash\r\n   $ cp .env.example .env\r\n   ```\r\n   On Windows:\r\n   ```powershell\r\n   $ copy .env.example .env\r\n   ```\r\n6. Add your [API key](https://beta.openai.com/account/api-keys) to the newly created `.env` file\r\n\r\n7. Run the app\r\n\r\n   ```bash\r\n   $ node xxx.js\r\n   ```\r\n\r\n## ChatGPT Bot Apps\r\n\r\n* [ChatGPT WeChat Bot](https://github.com/formulahendry/chatgpt-wechat-bot)\r\n* [ChatGPT Teams Bot](https://github.com/formulahendry/chatgpt-teams-bot)\r\n\r\n## Reference\r\n\r\n* [Documentation](https://beta.openai.com/docs/introduction)\r\n* [Examples](https://beta.openai.com/examples)\r\n* [Playground](https://beta.openai.com/playground)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformulahendry%2Fopenai-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fformulahendry%2Fopenai-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformulahendry%2Fopenai-examples/lists"}