mirror of
https://github.com/asyouplz/SpeechNote.git
synced 2026-07-22 06:43:33 +00:00
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:
parent
cbdb374e9d
commit
e7f4139979
2 changed files with 2 additions and 2 deletions
|
|
@ -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('*')) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue