fix: default group chat settings and voice transcription to 'no' in o… (#563)
This commit is contained in:
@@ -97,7 +97,7 @@ async function promptGroupSettings(
|
|||||||
|
|
||||||
const configure = await p.confirm({
|
const configure = await p.confirm({
|
||||||
message: 'Configure group chat settings?',
|
message: 'Configure group chat settings?',
|
||||||
initialValue: hasExisting,
|
initialValue: false,
|
||||||
});
|
});
|
||||||
if (p.isCancel(configure)) {
|
if (p.isCancel(configure)) {
|
||||||
p.cancel('Cancelled');
|
p.cancel('Cancelled');
|
||||||
|
|||||||
@@ -997,7 +997,7 @@ async function stepProviders(config: OnboardConfig, env: Record<string, string>)
|
|||||||
if (provider.id === 'openai') {
|
if (provider.id === 'openai') {
|
||||||
const enableTranscription = await p.confirm({
|
const enableTranscription = await p.confirm({
|
||||||
message: 'Enable voice message transcription with this OpenAI key? (uses Whisper)',
|
message: 'Enable voice message transcription with this OpenAI key? (uses Whisper)',
|
||||||
initialValue: true,
|
initialValue: false,
|
||||||
});
|
});
|
||||||
if (!p.isCancel(enableTranscription) && enableTranscription) {
|
if (!p.isCancel(enableTranscription) && enableTranscription) {
|
||||||
config.transcription.enabled = true;
|
config.transcription.enabled = true;
|
||||||
@@ -1191,7 +1191,7 @@ async function stepTranscription(config: OnboardConfig, forcePrompt?: boolean):
|
|||||||
|
|
||||||
const setupTranscription = await p.confirm({
|
const setupTranscription = await p.confirm({
|
||||||
message: 'Enable voice message transcription?',
|
message: 'Enable voice message transcription?',
|
||||||
initialValue: config.transcription.enabled,
|
initialValue: false,
|
||||||
});
|
});
|
||||||
if (p.isCancel(setupTranscription)) { p.cancel('Setup cancelled'); process.exit(0); }
|
if (p.isCancel(setupTranscription)) { p.cancel('Setup cancelled'); process.exit(0); }
|
||||||
config.transcription.enabled = setupTranscription;
|
config.transcription.enabled = setupTranscription;
|
||||||
|
|||||||
Reference in New Issue
Block a user