azure-openai-to-responses
Skill by microsoft
Migrates Python apps from Azure OpenAI Chat Completions to the Responses API. It moves AzureOpenAI clients to the standard OpenAI client on the v1 endpoint and covers streaming, tools, structured output, multi-turn and Entra ID auth. It is for Python developers on Azure OpenAI.
Install azure-openai-to-responses
Built from the published package, never by AI.
git clone --depth 1 https://github.com/microsoft/ai-agents-for-beginners /tmp/ai-agents-for-beginners && mkdir -p ~/.claude/skills && cp -r /tmp/ai-agents-for-beginners/translations/pcm/.agents/skills/azure-openai-to-responses ~/.claude/skills/azure-openai-to-responsesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install azure-openai-to-responses in Claude Code
git clone --depth 1 https://github.com/microsoft/ai-agents-for-beginners /tmp/ai-agents-for-beginners && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ai-agents-for-beginners/translations/pcm/.agents/skills/azure-openai-to-responses ~/.gemini/antigravity-cli/skills/azure-openai-to-responsesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install azure-openai-to-responses in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides an assistant through migrating Python code that calls Azure OpenAI Chat Completions to the Responses API. It lists the call sites, proposes a migration plan and applies small, reviewable edits. It covers switching AzureOpenAI and AsyncAzureOpenAI clients to the OpenAI and AsyncOpenAI clients on the /openai/v1 endpoint, along with streaming, tools, structured output, multi-turn conversations and Entra ID authentication.
Before migrating, the skill checks whether a deployment supports the Responses API, using a smoke test and a model compatibility command that queries Azure for a region. It also flags older models and GitHub Models code paths, and includes notes for LangChain and Microsoft Agent Framework. It is intended for Python teams only. It does not cover Node, TypeScript, C#, Java or Go, new apps built from scratch, Azure infrastructure setup or model deployment.
Written from the project's SKILL.md and checked against it.
What it can do
- Client migration to v1 endpointSwitches AzureOpenAI and AsyncAzureOpenAI clients to OpenAI and AsyncOpenAI on the /openai/v1 endpoint.
- Responses API smoke testSends a short test request to check whether a deployment supports the Responses API.
- Model compatibility checkRuns migrate.py models to show which models support Responses, structured output and tools in a region.
- Streaming and tools migrationMoves streaming, tool calls and structured output code to the Responses API shape.
- Multi-turn and Entra ID authCovers multi-turn conversations and Entra ID authentication in the migrated code.
- Environment variable cleanupRemoves api_version settings and renames AZURE_OPENAI_CLIENT_ID to AZURE_CLIENT_ID.
- Framework migration notesExplains changes for Microsoft Agent Framework and LangChain (langchain-openai) users.
- GitHub Models removal flaggingFlags GitHub Models code paths for removal, since they do not support the Responses API.
What you need
- Python codebase using Azure OpenAI
- openai>=1.108.1 in requirements.txt or pyproject.toml
- Azure OpenAI deployment and endpoint
- Azure subscription ID and region for the model compatibility command
Try asking
- Migrate my Python app from AzureOpenAI chat completions to the Responses API
- Check whether my Azure OpenAI deployment supports the Responses API
- Switch my AzureOpenAI client to the OpenAI v1 endpoint and remove api_version
Good to know
- Python only. Node, TypeScript, C#, Java and Go are not covered.
- Models before gpt-4.1 do not support all Responses API features fully.
- The seed parameter is not supported in the Responses API and must be removed.
- Does not cover Azure infrastructure setup or model deployment.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: translations/pcm/.agents/skills/azure-openai-to-responses/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md24 KB -
references/cheat-sheet.md28 KB -
references/test-migration.md7 KB -
references/troubleshooting.md15 KB
Alternatives to azure-openai-to-responses
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
azure-openai-to-responses: common questions
Does this skill support Node or TypeScript migrations?
No. The source says it is Python-only and lists Node, TypeScript, C#, Java and Go migrations as out of scope.
Which models does the Responses API work with on Azure OpenAI?
The source says the skill can check this per region with the model compatibility command. Models before gpt-4.1 have limitations, and the source recommends newer models such as gpt-5.1 and gpt-5.2.
Will the skill commit changes to git?
No. The guardrails say it must not run git add, commit or push, and only produces working-tree edits.
How do I install azure-openai-to-responses?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is azure-openai-to-responses free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is azure-openai-to-responses safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to azure-openai-to-responses?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
