def default_responses_llm():
    """Create a default OpenAIResponses instance with mocked clients."""
    with (
        patch("llama_index.llms.openai.responses.SyncOpenAI"),
        patch("llama_index.llms.openai.responses.AsyncOpenAI"),
    ):
        llm = OpenAIResponses(
            model="gpt-4o-mini",
            api_key="fake-api-key",
            api_base="https://api.openai.com/v1",
            api_version="2023-05-15",
        )
    return llm
Create a default OpenAIResponses instance with mocked clients.
llama-index-integrations/llms/llama-index-llms-openai/tests/test_openai_responses.py