"""Acceptance test: Verify LLM client can call OpenRouter API.

Prerequisites:
- backend/.env file exists with valid LLM_BASE_URL and LLM_API_KEY
- Network access to OpenRouter API
"""
import pytest
import os


@pytest.mark.acceptance
@pytest.mark.slow
def test_llm_client_says_hi():
    """Should send 'hi' to LLM and receive a non-empty response."""
    from app.core.config import get_settings
    from app.services.llm_client import LLMClient
    
    settings = get_settings()
    client = LLMClient(settings)
    
    response = client.complete("Say hi briefly", temperature=0.7)
    
    assert response is not None
    assert len(response) > 0
    assert isinstance(response, str)
    print(f"LLM Response: {response}")
