mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
test(voice): match API-key realtime auth response
This commit is contained in:
1 parent
8f5710e7cb
commit
467c4e928d
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -469,7 +469,7 @@ export async function initKeySetup({
|
||||
throw new Error(
|
||||
payload.error || 'Could not check ChatGPT sign-in.',
|
||||
);
|
||||
if (response.ok && payload.available) {
|
||||
if (payload.available) {
|
||||
writeStoredCloudVoiceAuthMode('oauth');
|
||||
render(status);
|
||||
say(
|
||||
@@ -490,7 +490,7 @@ export async function initKeySetup({
|
||||
});
|
||||
const loginPayload = await loginResponse.json().catch(() => ({}));
|
||||
if (lifetime.signal.aborted) return;
|
||||
if (!loginResponse.ok && loginResponse.status !== 202) {
|
||||
if (!loginResponse.ok) {
|
||||
say(
|
||||
loginPayload.error ||
|
||||
payload.error ||
|
||||
|
||||
Reference in new issue
Block a user