This repository provides a centralized configuration file for WordPress plugins to discover available AI engines and their capabilities.
WordPress plugins can fetch the configuration directly from GitHub:
https://raw.githubusercontent.com/nholzmann/AIEngines/main/ai-engines.json
The JSON file contains:
- version: Configuration file version
- last_updated: Last update date
- engines: Array of available AI providers
- Each engine includes:
- Basic info (id, name, status)
- Available models with capabilities
- API endpoints
- Authentication method
- Each engine includes:
function get_ai_engines() {
$response = wp_remote_get('https://raw.githubusercontent.com/[yourusername]/AIEngines/main/ai-engines.json');
if (is_wp_error($response)) {
return false;
}
$body = wp_remote_retrieve_body($response);
return json_decode($body, true);
}Each model includes:
model_id: Unique identifier for API callsname: Human-readable nametype: Model type (chat, completion, etc.)context_window: Maximum input tokensmax_output_tokens: Maximum response tokenssupports_vision: Image input capabilitysupports_function_calling: Function/tool calling support
To update AI engine information:
- Fork this repository
- Update
ai-engines.json - Submit a pull request
MIT License