def test_complete(llm: GoogleGenAI) -> None:
    """Test both sync and async complete methods."""
    prompt = "Write a poem about a magic backpack"

    # Test synchronous complete
    sync_response = llm.complete(prompt)
    assert sync_response is not None
    assert len(sync_response.text) > 0
Test both sync and async complete methods.
llama-index-integrations/llms/llama-index-llms-google-genai/tests/test_llms_google_genai.py