$v) { $stmt = $pdo->prepare("UPDATE admin.commonia_config SET config_value = ? WHERE config_key = ?"); $stmt->execute([trim($v), $k]); } $msg = 'โ Clรฉs sauvegardรฉes!'; } $keys = []; $stmt = $pdo->query("SELECT config_key, config_value FROM admin.commonia_config WHERE config_key LIKE '%_api_key' OR config_key LIKE '%_url' ORDER BY config_key"); while ($r = $stmt->fetch(PDO::FETCH_ASSOC)) $keys[$r['config_key']] = $r['config_value']; $providers = [ ['cerebras_api_key', '๐ง Cerebras', 'https://cloud.cerebras.ai/'], ['groq_api_key', '๐ Groq', 'https://console.groq.com/keys'], ['deepseek_api_key', '๐ฎ DeepSeek', 'https://platform.deepseek.com/api_keys'], ['gemini_api_key', '๐ Gemini', 'https://makersuite.google.com/app/apikey'], ['mistral_api_key', '๐ซ๐ท Mistral', 'https://console.mistral.ai/api-keys'], ['cohere_api_key', '๐ถ Cohere', 'https://dashboard.cohere.com/api-keys'], ['hyperbolic_api_key', '๐ Hyperbolic', 'https://app.hyperbolic.xyz/settings'], ['sambanova_api_key', '๐ SambaNova', 'https://cloud.sambanova.ai/'], ['anthropic_api_key', '๐ง Claude', 'https://console.anthropic.com/'], ['openai_api_key', '๐ค ChatGPT', 'https://platform.openai.com/api-keys'], ['together_api_key', '๐ค Together', 'https://api.together.xyz/settings/api-keys'], ['openrouter_api_key', '๐ OpenRouter', 'https://openrouter.ai/keys'], ['fireworks_api_key', '๐ Fireworks', 'https://fireworks.ai/account/api-keys'], ['copilot_api_key', '๐ Copilot', 'https://github.com/settings/copilot'], ['ollama_url', '๐ฆ Ollama URL', ''], ]; ?>