ai: clearer(?) names

This commit is contained in:
end-4 2024-01-25 13:16:16 +07:00
parent f14d3146db
commit fb2cb6ed7e
3 changed files with 10 additions and 10 deletions

View file

@ -52,7 +52,7 @@ const ChatGPTInfo = () => {
className: 'txt txt-title-small sidebar-chat-welcome-txt',
wrap: true,
justify: Gtk.Justification.CENTER,
label: 'Assistant (ChatGPT)',
label: 'Assistant (ChatGPT 3.5)',
}),
Box({
className: 'spacing-h-5',
@ -123,8 +123,8 @@ export const ChatGPTSettings = () => MarginRevealer({
}),
ConfigToggle({
icon: 'description',
name: 'Assistant prompt',
desc: 'Tells ChatGPT to be brief,\nuse bullet points, and let\nit know it\'s a sidebar assistant',
name: 'Enhancements',
desc: 'Tells ChatGPT:\n- It\'s a Linux sidebar assistant\n- Be brief and use bullet points',
initValue: ChatGPT.assistantPrompt,
onChange: (self, newValue) => {
ChatGPT.assistantPrompt = newValue;

View file

@ -48,7 +48,7 @@ const GeminiInfo = () => {
className: 'txt txt-title-small sidebar-chat-welcome-txt',
wrap: true,
justify: Gtk.Justification.CENTER,
label: 'Assistant (Gemini)',
label: 'Assistant (Gemini Pro)',
}),
Box({
className: 'spacing-h-5',
@ -110,8 +110,8 @@ export const GeminiSettings = () => MarginRevealer({
children: [
ConfigToggle({
icon: 'description',
name: 'Assistant prompt',
desc: 'Tells Gemini to be brief,\nuse bullet points, and let\nit know it\'s a sidebar assistant',
name: 'Enhancements',
desc: 'Tells Gemini:\n- It\'s a Linux sidebar assistant\n- Be brief and use bullet points',
initValue: Gemini.assistantPrompt,
onChange: (self, newValue) => {
Gemini.assistantPrompt = newValue;

View file

@ -13,7 +13,7 @@ import { waifuView, waifuCommands, sendMessage as waifuSendMessage, waifuTabIcon
const APIS = [
{
name: 'Assistant (ChatGPT)',
name: 'Assistant (ChatGPT 3.5)',
sendCommand: chatGPTSendMessage,
contentWidget: chatGPTView,
commandBar: chatGPTCommands,
@ -21,7 +21,7 @@ const APIS = [
placeholderText: 'Message ChatGPT...',
},
{
name: 'Assistant (Gemini)',
name: 'Assistant (Gemini Pro)',
sendCommand: geminiSendMessage,
contentWidget: geminiView,
commandBar: geminiCommands,
@ -45,11 +45,11 @@ export const chatEntry = Entry({
hexpand: true,
setup: (self) => self
.hook(ChatGPT, (self) => {
if (APIS[currentApiId].name != 'Assistant (ChatGPT)') return;
if (APIS[currentApiId].name != 'Assistant (ChatGPT 3.5)') return;
self.placeholderText = (ChatGPT.key.length > 0 ? 'Message ChatGPT...' : 'Enter OpenAI API Key...');
}, 'hasKey')
.hook(Gemini, (self) => {
if (APIS[currentApiId].name != 'Assistant (Gemini)') return;
if (APIS[currentApiId].name != 'Assistant (Gemini Pro)') return;
self.placeholderText = (Gemini.key.length > 0 ? 'Message Gemini...' : 'Enter Google AI API Key...');
}, 'hasKey')
,