{"id":26731762,"url":"https://github.com/zeeshanhanif/openai-responses-api","last_synced_at":"2026-04-19T13:32:16.618Z","repository":{"id":283133069,"uuid":"948301017","full_name":"zeeshanhanif/openai-responses-api","owner":"zeeshanhanif","description":"Repository to Learn OpenAI's new Responses API","archived":false,"fork":false,"pushed_at":"2025-03-25T18:02:13.000Z","size":1397,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T19:22:02.442Z","etag":null,"topics":["agentic-ai","agents","chatgpt-api","jupyter-notebook","llm","llms","openai","prompt-engineering","python","responses-api"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/zeeshanhanif.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":"2025-03-14T04:48:51.000Z","updated_at":"2025-03-25T18:02:16.000Z","dependencies_parsed_at":"2025-03-25T19:21:22.577Z","dependency_job_id":null,"html_url":"https://github.com/zeeshanhanif/openai-responses-api","commit_stats":null,"previous_names":["zeeshanhanif/openai-responses-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zeeshanhanif/openai-responses-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshanhanif%2Fopenai-responses-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshanhanif%2Fopenai-responses-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshanhanif%2Fopenai-responses-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshanhanif%2Fopenai-responses-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeeshanhanif","download_url":"https://codeload.github.com/zeeshanhanif/openai-responses-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshanhanif%2Fopenai-responses-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32009119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["agentic-ai","agents","chatgpt-api","jupyter-notebook","llm","llms","openai","prompt-engineering","python","responses-api"],"created_at":"2025-03-28T00:37:56.674Z","updated_at":"2026-04-19T13:32:16.596Z","avatar_url":"https://github.com/zeeshanhanif.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAI Responses API \u0026 Chat API Comparison Repository\n\nThis repository explores the differences between OpenAI's new **Responses API** and the existing **Chat API**, providing practical, side-by-side examples in each Jupyter notebook.  \nIt aims to help developers understand the enhanced functionality, flexibility, and multi-turn interaction capabilities of the Responses API while comparing it with the familiar Chat API.\n\n## Overview\n\nOpenAI's Responses API simplifies the development of agentic applications by supporting:\n- **Multi-turn conversations**  \n- **Multiple tool integrations** like Web Search, File Search, and Computer Use  \n- **Structured and streaming outputs**  \n\nThis API reduces the complexity of manually integrating tools and conversational logic, making it easier to build advanced AI-driven applications.\n\nEach Jupyter notebook in this repository includes:\n1. **Chat API Example**  \n   Traditional usage of OpenAI's Chat API for comparison.\n2. **Responses API Example**  \n   Demonstrates how the same task can be accomplished using the new Responses API, highlighting the key differences and improvements.\n\n---\n\n## Getting Started\n\n### Clone the Repository  \n```bash\ngit clone https://github.com/zeeshanhanif/openai-responses-api.git\ncd openai-responses-api\n```\n\n### Install Dependencies  \n```bash\npip install -r requirements.txt\n```\n\n### Launch Jupyter Notebook  \n```bash\njupyter notebook\n```\n\n### Open and Explore  \nRun the desired notebook to compare Chat API and Responses API examples side by side.\n\n---\n\n## Prerequisites\n\n- **Python 3.7 or higher**  \n- **Jupyter Notebook** – Install it if needed:  \n  ```bash\n  pip install jupyter\n  ```\n- **OpenAI API Key** – Get your key from OpenAI and set it as an environment variable:  \n  ```bash\n  export OPENAI_API_KEY='your-api-key'\n  ```\n\n---\n\n## Why Compare Chat API vs. Responses API?\n\nThis repository helps you understand key differences and new functionalities:\n- **Multi-turn interactions**: The Responses API handles ongoing conversation state more efficiently.  \n- **Tool integrations**: Explore tool-calling features built into the Responses API, compared to manual logic in the Chat API.  \n- **Structured outputs**: The Responses API's structured responses allow more control over output formats.  \n\n---\n\n## Additional Resources\n\n- **OpenAI Responses API Launch Announcement**:  \n  [https://openai.com/index/new-tools-for-building-agents/](https://openai.com/index/new-tools-for-building-agents/)\n- **OpenAI Responses API Documentation**:  \n  [https://platform.openai.com/docs/quickstart?api-mode=responses](https://platform.openai.com/docs/quickstart?api-mode=responses)  \n- **OpenAI Chat API Documentation**:  \n  [https://platform.openai.com/docs/quickstart?api-mode=chat](https://platform.openai.com/docs/quickstart?api-mode=chat)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeeshanhanif%2Fopenai-responses-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeeshanhanif%2Fopenai-responses-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeeshanhanif%2Fopenai-responses-api/lists"}