28 lines
1.3 KiB
PHP
Executable File
28 lines
1.3 KiB
PHP
Executable File
<?php
|
|
header('Content-Type: application/json');
|
|
|
|
// Charger les providers depuis la config ou définir par défaut
|
|
$providers = [
|
|
'cerebras' => ['name' => 'Cerebras', 'status' => 'ready', 'model' => 'llama3.1-8b'],
|
|
'groq' => ['name' => 'Groq', 'status' => 'ready', 'model' => 'llama-3.1-70b-versatile'],
|
|
'deepseek' => ['name' => 'DeepSeek', 'status' => 'ready', 'model' => 'deepseek-chat'],
|
|
'gemini' => ['name' => 'Gemini', 'status' => 'ready', 'model' => 'gemini-2.0-flash'],
|
|
'mistral' => ['name' => 'Mistral', 'status' => 'ready', 'model' => 'mistral-small-latest'],
|
|
'cohere' => ['name' => 'Cohere', 'status' => 'ready', 'model' => 'command-r'],
|
|
'sambanova' => ['name' => 'SambaNova', 'status' => 'ready', 'model' => 'Meta-Llama-3.1-8B'],
|
|
'hyperbolic' => ['name' => 'Hyperbolic', 'status' => 'ready', 'model' => 'meta-llama/Llama-3.1-8B'],
|
|
'ollama' => ['name' => 'Ollama Local', 'status' => 'ready', 'model' => 'mistral:7b'],
|
|
'openrouter' => ['name' => 'OpenRouter', 'status' => 'ready', 'model' => 'auto'],
|
|
'claude' => ['name' => 'Claude', 'status' => 'ready', 'model' => 'claude-3-haiku']
|
|
];
|
|
|
|
$ready = count(array_filter($providers, fn($p) => $p['status'] === 'ready'));
|
|
|
|
echo json_encode([
|
|
'providers' => $providers,
|
|
'total' => count($providers),
|
|
'ready' => $ready,
|
|
'timestamp' => date('Y-m-d H:i:s')
|
|
]);
|
|
|