forked from Shinonome/dots-hyprland
gpts: allow no api key
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user