Deploy: 2026-05-22 17:08:48
This commit is contained in:
@@ -45,6 +45,16 @@ if (empty($elVoiceId)) {
|
|||||||
echo "ℹ️ [Config] ElevenLabs Voice ID loaded from active chatbot rule: {$elVoiceId}\n";
|
echo "ℹ️ [Config] ElevenLabs Voice ID loaded from active chatbot rule: {$elVoiceId}\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow override via query parameters for testing
|
||||||
|
if (!empty($_GET['key_override'])) {
|
||||||
|
$elApiKey = trim($_GET['key_override']);
|
||||||
|
echo "ℹ️ [Config] ElevenLabs API Key overridden via GET parameter.\n";
|
||||||
|
}
|
||||||
|
if (!empty($_GET['voice_override'])) {
|
||||||
|
$elVoiceId = trim($_GET['voice_override']);
|
||||||
|
echo "ℹ️ [Config] ElevenLabs Voice ID overridden via GET parameter.\n";
|
||||||
|
}
|
||||||
|
|
||||||
if (empty($elApiKey)) {
|
if (empty($elApiKey)) {
|
||||||
echo "❌ [Config] ElevenLabs API Key is missing. Diagnostics stopped.\n";
|
echo "❌ [Config] ElevenLabs API Key is missing. Diagnostics stopped.\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user