Validate configuration and test LLM API connectivity. Checks: • Configuration file exists and is valid • API key is present • API settings are correctly formatted • (Optional) API connectivity test Examples: \b # Full validation with API te
(quick: bool, verbose: bool)
| 474 | if cluster_model: |
| 475 | click.secho(f"✓ Cluster model: {cluster_model}", fg="green") |
| 476 | |
| 477 | # Warn if not using top-tier model for clustering |
| 478 | if not is_top_tier_model(cluster_model): |
| 479 | click.secho( |
| 480 | "\n⚠️ Cluster model is not a top-tier LLM. " |
| 481 | "Documentation quality may be suboptimal.", |
| 482 | fg="yellow", |
| 483 | ) |
| 484 | click.echo( |
| 485 | " Recommended models: claude-opus, claude-sonnet-4, gpt-4, gpt-4-turbo" |
| 486 | ) |
| 487 | |
| 488 | if fallback_model: |
| 489 | click.secho(f"✓ Fallback model: {fallback_model}", fg="green") |
| 490 | |
| 491 | if max_tokens: |
| 492 | click.secho(f"✓ Max tokens: {max_tokens}", fg="green") |
| 493 | |
| 494 | if min_token_per_module is not None: |
| 495 | click.secho(f"✓ Min token per module: {min_token_per_module}", fg="green") |
| 496 | |
| 497 | if max_token_per_module: |
| 498 | click.secho(f"✓ Max token per module: {max_token_per_module}", fg="green") |
| 499 | |
| 500 | if max_token_per_leaf_module: |
| 501 | click.secho(f"✓ Max token per leaf module: {max_token_per_leaf_module}", fg="green") |
| 502 | |
| 503 | if max_depth: |
| 504 | click.secho(f"✓ Max depth: {max_depth}", fg="green") |
| 505 | |
| 506 | if request_limit: |
| 507 | click.secho(f"✓ Request limit: {request_limit}", fg="green") |
| 508 | |
| 509 | if agent_retries is not None: |
| 510 | click.secho(f"✓ Agent retries: {agent_retries}", fg="green") |
| 511 | |
| 512 | if provider: |
| 513 | click.secho(f"✓ Provider: {provider}", fg="green") |
| 514 | |
| 515 | if aws_region: |
| 516 | click.secho(f"✓ AWS Region: {aws_region}", fg="green") |
| 517 | |
| 518 | if api_version: |
| 519 | click.secho(f"✓ API Version: {api_version}", fg="green") |
| 520 | |
| 521 | if azure_deployment: |
| 522 | click.secho(f"✓ Azure Deployment: {azure_deployment}", fg="green") |
| 523 | |
| 524 | if google_project: |
| 525 | click.secho(f"✓ Google project: {google_project}", fg="green") |
| 526 | |
| 527 | if google_location: |
| 528 | click.secho(f"✓ Google location: {google_location}", fg="green") |
| 529 | |
| 530 | if use_gitignore is not None: |
| 531 | click.secho(f"✓ Use gitignore: {use_gitignore}", fg="green") |
| 532 | |
| 533 | if prompt_caching is not None: |
nothing calls this directly
no test coverage detected