Files
wevads-platform/scripts/hamid-providers-config.php
2026-02-26 04:53:11 +01:00

30 lines
929 B
PHP
Executable File

<?php
// WEVAL MIND Providers Configuration
$PROVIDERS_CONFIG = [
'default_provider' => 'cerebras',
'api_endpoint' => '/hamid-api.php'
];
// Fonction dropdown pour les providers
function hamid_providers_dropdown($default = 'cerebras', $name = 'provider', $class = '') {
$providers = [
'cerebras' => '⚡ Cerebras',
'groq' => '🚀 Groq',
'deepseek' => '🌊 DeepSeek',
'gemini' => '💎 Gemini',
'mistral' => '🇫🇷 Mistral',
'cohere' => '🧠 Cohere',
'hyperbolic' => '🔥 Hyperbolic',
'sambanova' => '⚡ SambaNova',
'ollama' => '🦙 Ollama'
];
$html = "<select id='$name' name='$name' class='$class'>";
foreach ($providers as $key => $label) {
$selected = ($key === $default) ? 'selected' : '';
$html .= "<option value='$key' $selected>$label</option>";
}
$html .= "</select>";
return $html;
}