Mock Azure OpenAI

Community

Standardize Azure OpenAI API mocks

Authorarugo11
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a standardized approach to mocking the Azure OpenAI API, simplifying the process of testing applications that interact with it.

Core Features & Use Cases

  • Standardized Mocking: Offers helper functions and patterns for creating mock HTTP responses for Azure OpenAI API calls.
  • Test urllib.request.urlopen: Specifically useful for testing functions that use urlopen, which the Azure OpenAI SDK relies on internally.
  • Async Service Testing: Demonstrates how to mock API calls within asynchronous services that use asyncio.to_thread().
  • Use Case: When developing a feature that relies on Azure OpenAI for text generation, use this Skill to create predictable API responses during development and testing, ensuring your application logic works correctly without incurring actual API costs or depending on external service availability.

Quick Start

Use the mock Azure OpenAI skill to create a mock HTTP response for a chat completion API call.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Mock Azure OpenAI
Download link: https://github.com/arugo11/sit-copilot/archive/main.zip#mock-azure-openai

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.