gpts: allow no api key

This commit is contained in:
end-4
2025-04-06 17:37:05 +02:00
parent 885c4b9679
commit 3dc0a61acc
4 changed files with 19 additions and 4 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ export const sendMessage = (text) => {
if (text.length == 0) return;
if (GeminiService.key.length == 0) {
GeminiService.key = text;
chatContent.add(SystemMessage(`Key saved to\n\`${GeminiService.keyPath}\``, 'API Key', GeminiView));
chatContent.add(SystemMessage(`Key saved to \`${GeminiService.keyPath}\`\nUpdate anytime with /key YOUR_API_KEY.`, 'API Key', GeminiView));
text = '';
return;
}