Keyless voice: say where to add the OpenAI key instead of blaming the microphone

This commit is contained in:
Said Turksever authored and Sameh Khamis committed 2026-11-10 16:11:17 -08:00
1 parent 775e9df120
commit 09d02b6e7a
7 files changed
+40 -6

No files matched your search

+6 -1
View File
@@ -238,7 +238,12 @@ function createRealtimeTokenHandler({
if (!bearer) {
res.statusCode = 503;
res.setHeader('Content-Type', 'application/json');
res.end(JSON.stringify({ error: 'OPENAI_API_KEY is not set' }));
res.end(
JSON.stringify({
error: 'OPENAI_API_KEY is not set',
code: 'API_KEY_MISSING',
}),
);
return;
}
}