mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-22 16:59:57 -05:00
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