agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/azure-openai/SKILL.md

azure-openai

Skill13 starsChanged 28 days agoMITView on GitHub

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Avoid static API keys. Use Managed Identities (Entra ID / Azure AD) to authenticate your application servers to the Azure OpenAI endpoint …

    line 22
  2. Very specific:

    Use the official OpenAI SDK, but configure the baseURL and defaultHeaders to point to your Azure endpoint …

    line 28
  3. Very specific:

    If you receive a 'Resource not found' error, verify that the api-version query parameter is correct and supported by your specific model …

    line 31
  4. Distinctive:

    Use this when your agent works with azure-openai — structured patterns beat pasted docs and prevent common hallucinations.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Azure OpenAI API Skill

Quick Start

Azure OpenAI provides the same models as OpenAI (GPT-4) but within the Azure compliance boundary, utilizing Active Directory and custom domain endpoints.

npm install openai

Common Workflows

Enterprise Model Deployment

Unlike the public OpenAI API, Azure requires you to explicitly deploy a model in your resource. You must use your unique Deployment ID rather than the generic model name (e.g., gpt-4) in your API calls.

Production Patterns

Content Filtering

Azure OpenAI applies aggressive, customizable content filters. You can detect if a response was filtered by inspecting the finish_reason which will evaluate to content_filter instead of stop.

Error Recovery

Handle 429 Too Many Requests. Azure OpenAI rate limits are based on Tokens-Per-Minute (TPM) assigned to your deployment. If you exceed this, you must retry. Use the @azure/core-rest-pipeline to inject automated retry policies.

Security Notes

Avoid static API keys. Use Managed Identities (Entra ID / Azure AD) to authenticate your application servers to the Azure OpenAI endpoint securely without rotating secrets.

Performance Considerations

Latency is heavily dependent on the Azure region. Deploy your models in the same region as your application servers to minimize network RTT (Round Trip Time).

Testing Guidance

Use the official OpenAI SDK, but configure the baseURL and defaultHeaders to point to your Azure endpoint (https://<resource>.openai.azure.com/openai/deployments/<deployment>).

Troubleshooting

If you receive a 'Resource not found' error, verify that the api-version query parameter is correct and supported by your specific model deployment.

References

Related Skills

  • OpenAI
  • Anthropic

Why use this skill

Use this when your agent works with azure-openai — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Using deprecated model IDs or wrong API endpoints
  • Confusing chat vs completions vs embeddings APIs
  • Omitting rate-limit and token budget handling

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • openai — related to
  • anthropic — related to

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.