{"id":20626724,"url":"https://github.com/coreprocess/python-openai-at-azure-example","last_synced_at":"2025-08-24T03:40:35.615Z","repository":{"id":237440833,"uuid":"713107801","full_name":"coreprocess/python-openai-at-azure-example","owner":"coreprocess","description":"Example on how to use OpenAI at Azure with Python","archived":false,"fork":false,"pushed_at":"2023-11-01T22:09:13.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T06:27:41.621Z","etag":null,"topics":["azure","cognitive-services","dotenv","example","gpt","gpt-4","openai","openai-api","python","python3","tenacity"],"latest_commit_sha":null,"homepage":"","language":"Python","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/coreprocess.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-01T21:15:13.000Z","updated_at":"2023-11-02T22:12:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"338ac54c-39e9-4da7-8c60-c018ea5fb300","html_url":"https://github.com/coreprocess/python-openai-at-azure-example","commit_stats":null,"previous_names":["coreprocess/python-openai-at-azure-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreprocess%2Fpython-openai-at-azure-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreprocess%2Fpython-openai-at-azure-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreprocess%2Fpython-openai-at-azure-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreprocess%2Fpython-openai-at-azure-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coreprocess","download_url":"https://codeload.github.com/coreprocess/python-openai-at-azure-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242483345,"owners_count":20135784,"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":["azure","cognitive-services","dotenv","example","gpt","gpt-4","openai","openai-api","python","python3","tenacity"],"created_at":"2024-11-16T13:14:32.637Z","updated_at":"2025-03-08T00:37:39.437Z","avatar_url":"https://github.com/coreprocess.png","language":"Python","readme":"# Use OpenAI at Azure with Python\n\n## Prerequisites for this Example\n\n- Windows\n- One of the latest Python 3.x releases: https://www.python.org/downloads/\n- Microsoft C++ Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/\n\n## Run this Example\n\n```bash\n# check python version (run once)\npython --version\n\n# create new virtual environment (run once)\npython -m venv .venv\n\n# activate the virtual environment (run before each session)\n.venv\\Scripts\\activate.ps1 # PowerShell\n.venv\\Scripts\\activate.bat # CMD\n\n# workaround currently necessary for Python 3.12, ignore if you use 3.11 or before (run once)\npip --require-virtualenv install aiohttp==3.9.0b0\n\n# install openai dependency (run once)\npip --require-virtualenv install openai tenacity python-dotenv\n\n# prepare environment variables (run once)\ncp .env-template .env\ncode .env\n\n# run the example script (run whenever you feel like it)\npython example.py\n\n# deactivate the virtual environment (run at the end of the session)\ndeactivate\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreprocess%2Fpython-openai-at-azure-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoreprocess%2Fpython-openai-at-azure-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreprocess%2Fpython-openai-at-azure-example/lists"}