fix(ui): use lowercase openai key placeholders (#78)

Match the OpenAI API key placeholders to the actual lowercase sk- prefix in the settings UI.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
asyouplz 2026-03-15 01:17:40 +09:00 committed by GitHub
parent cbdb374e9d
commit e7f4139979
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -369,7 +369,7 @@ export class SettingsTab extends PluginSettingTab {
.setName('OpenAI API key')
.setDesc('Enter your OpenAI API key for Whisper transcription')
.addText((text) => {
text.setPlaceholder('Sk-...')
text.setPlaceholder('sk-...')
.setValue(this.maskApiKey(this.plugin.settings.apiKey || ''))
.onChange(async (value) => {
if (value && !value.includes('*')) {

View file

@ -65,7 +65,7 @@ export class SimpleSettingsTab extends PluginSettingTab {
.setDesc('Enter your OpenAI API key for Whisper')
.addText((text) =>
text
.setPlaceholder('Sk-...')
.setPlaceholder('sk-...')
.setValue(this.plugin.settings.apiKey || '')
.onChange(async (value) => {
this.plugin.settings.apiKey = value;