Learn R Programming

llmhelper (version 1.0.0)

diagnose_llm_connection: Comprehensive LLM connection diagnostics

Description

This function provides detailed diagnostics for LLM connection issues, helping identify problems at different levels of the stack.

Usage

diagnose_llm_connection(base_url, api_key, model, test_tidyprompt = TRUE)

Value

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)

Arguments

base_url

The API base URL

api_key

The API key

model

The model name

test_tidyprompt

Whether to test tidyprompt compatibility