def test_complete_with_api():
    """Test the complete method with real API call."""
    llm = OpenAIResponses(model="gpt-4o-mini")

    response = llm.complete("Write a one-sentence summary of Python.")
    assert response.text is not None
    assert len(response.text) > 0
Test the complete method with real API call.
llama-index-integrations/llms/llama-index-llms-openai/tests/test_openai_responses.py