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

This commit is contained in:
Said Turksever committed 2026-11-06 11:51:34 +00:00
1 parent a33bc379cb
commit 9efe169a6e
7 files changed
+40 -6

No files matched your search

+6 -1
View File
@@ -224,7 +224,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;
}
}