This function provides detailed diagnostics for LLM connection issues, helping identify problems at different levels of the stack.
diagnose_llm_connection(base_url, api_key, model, test_tidyprompt = TRUE)A list (invisible) containing test results with elements:
connectivity: Logical indicating if basic network connectivity passed
endpoint: Logical indicating if API endpoint is accessible
auth: Logical indicating if authentication and model test passed
tidyprompt: Logical indicating tidyprompt compatibility (if tested)
The API base URL
The API key
The model name
Whether to test tidyprompt compatibility