forked from Shinonome/dots-hyprland
ai: clearer(?) names
This commit is contained in:
@@ -52,7 +52,7 @@ const ChatGPTInfo = () => {
|
|||||||
className: 'txt txt-title-small sidebar-chat-welcome-txt',
|
className: 'txt txt-title-small sidebar-chat-welcome-txt',
|
||||||
wrap: true,
|
wrap: true,
|
||||||
justify: Gtk.Justification.CENTER,
|
justify: Gtk.Justification.CENTER,
|
||||||
label: 'Assistant (ChatGPT)',
|
label: 'Assistant (ChatGPT 3.5)',
|
||||||
}),
|
}),
|
||||||
Box({
|
Box({
|
||||||
className: 'spacing-h-5',
|
className: 'spacing-h-5',
|
||||||
@@ -123,8 +123,8 @@ export const ChatGPTSettings = () => MarginRevealer({
|
|||||||
}),
|
}),
|
||||||
ConfigToggle({
|
ConfigToggle({
|
||||||
icon: 'description',
|
icon: 'description',
|
||||||
name: 'Assistant prompt',
|
name: 'Enhancements',
|
||||||
desc: 'Tells ChatGPT to be brief,\nuse bullet points, and let\nit know it\'s a sidebar assistant',
|
desc: 'Tells ChatGPT:\n- It\'s a Linux sidebar assistant\n- Be brief and use bullet points',
|
||||||
initValue: ChatGPT.assistantPrompt,
|
initValue: ChatGPT.assistantPrompt,
|
||||||
onChange: (self, newValue) => {
|
onChange: (self, newValue) => {
|
||||||
ChatGPT.assistantPrompt = newValue;
|
ChatGPT.assistantPrompt = newValue;
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ const GeminiInfo = () => {
|
|||||||
className: 'txt txt-title-small sidebar-chat-welcome-txt',
|
className: 'txt txt-title-small sidebar-chat-welcome-txt',
|
||||||
wrap: true,
|
wrap: true,
|
||||||
justify: Gtk.Justification.CENTER,
|
justify: Gtk.Justification.CENTER,
|
||||||
label: 'Assistant (Gemini)',
|
label: 'Assistant (Gemini Pro)',
|
||||||
}),
|
}),
|
||||||
Box({
|
Box({
|
||||||
className: 'spacing-h-5',
|
className: 'spacing-h-5',
|
||||||
@@ -110,8 +110,8 @@ export const GeminiSettings = () => MarginRevealer({
|
|||||||
children: [
|
children: [
|
||||||
ConfigToggle({
|
ConfigToggle({
|
||||||
icon: 'description',
|
icon: 'description',
|
||||||
name: 'Assistant prompt',
|
name: 'Enhancements',
|
||||||
desc: 'Tells Gemini to be brief,\nuse bullet points, and let\nit know it\'s a sidebar assistant',
|
desc: 'Tells Gemini:\n- It\'s a Linux sidebar assistant\n- Be brief and use bullet points',
|
||||||
initValue: Gemini.assistantPrompt,
|
initValue: Gemini.assistantPrompt,
|
||||||
onChange: (self, newValue) => {
|
onChange: (self, newValue) => {
|
||||||
Gemini.assistantPrompt = newValue;
|
Gemini.assistantPrompt = newValue;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import { waifuView, waifuCommands, sendMessage as waifuSendMessage, waifuTabIcon
|
|||||||
|
|
||||||
const APIS = [
|
const APIS = [
|
||||||
{
|
{
|
||||||
name: 'Assistant (ChatGPT)',
|
name: 'Assistant (ChatGPT 3.5)',
|
||||||
sendCommand: chatGPTSendMessage,
|
sendCommand: chatGPTSendMessage,
|
||||||
contentWidget: chatGPTView,
|
contentWidget: chatGPTView,
|
||||||
commandBar: chatGPTCommands,
|
commandBar: chatGPTCommands,
|
||||||
@@ -21,7 +21,7 @@ const APIS = [
|
|||||||
placeholderText: 'Message ChatGPT...',
|
placeholderText: 'Message ChatGPT...',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Assistant (Gemini)',
|
name: 'Assistant (Gemini Pro)',
|
||||||
sendCommand: geminiSendMessage,
|
sendCommand: geminiSendMessage,
|
||||||
contentWidget: geminiView,
|
contentWidget: geminiView,
|
||||||
commandBar: geminiCommands,
|
commandBar: geminiCommands,
|
||||||
@@ -45,11 +45,11 @@ export const chatEntry = Entry({
|
|||||||
hexpand: true,
|
hexpand: true,
|
||||||
setup: (self) => self
|
setup: (self) => self
|
||||||
.hook(ChatGPT, (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...');
|
self.placeholderText = (ChatGPT.key.length > 0 ? 'Message ChatGPT...' : 'Enter OpenAI API Key...');
|
||||||
}, 'hasKey')
|
}, 'hasKey')
|
||||||
.hook(Gemini, (self) => {
|
.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...');
|
self.placeholderText = (Gemini.key.length > 0 ? 'Message Gemini...' : 'Enter Google AI API Key...');
|
||||||
}, 'hasKey')
|
}, 'hasKey')
|
||||||
,
|
,
|
||||||
|
|||||||
Reference in New Issue
Block a user