@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
51 lines (50 loc) • 1.6 kB
TypeScript
/**
* @fileoverview Tests for API connections to verify API keys.
*
* This module provides tests to verify that the API keys provided in the
* environment variables are valid and working correctly. It tests connections
* to various AI APIs including Google Gemini, OpenRouter, and Anthropic.
*
* Key features:
* - Tests connection to Google Gemini API
* - Tests connection to OpenRouter API
* - Tests connection to Anthropic API
* - Provides detailed error messages for failed connections
* - Can be run on startup to verify API keys
*/
/**
* Test connection to Google Gemini API
* @returns Promise resolving to a boolean indicating if the connection was successful
*/
export declare function testGeminiConnection(): Promise<{
success: boolean;
message: string;
}>;
/**
* Test connection to Anthropic API
* @returns Promise resolving to a boolean indicating if the connection was successful
*/
export declare function testAnthropicConnection(): Promise<{
success: boolean;
message: string;
}>;
/**
* Test connection to OpenRouter API
* @returns Promise resolving to a boolean indicating if the connection was successful
*/
export declare function testOpenRouterConnection(): Promise<{
success: boolean;
message: string;
}>;
/**
* Test connection to OpenAI API
* @returns Promise resolving to a boolean indicating if the connection was successful
*/
export declare function testOpenAIConnection(): Promise<{
success: boolean;
message: string;
}>;
/**
* Run API connection tests
*/
export declare function runApiConnectionTests(): Promise<void>;