end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
4.62k stars 324 forks source link

Why chatgpt #152

Closed meduk0 closed 9 months ago

meduk0 commented 11 months ago

I mean i dont use it my self and after installing your lovely dots and making some changes i wa asking as i am new to AGS : -can you provide more docs on how to use chatgpt especially if i dont wonna pay -made it optional so i can change it or remove it if i want -provide more docs on how the dots work (for easier integration) And thx for the daily update on the project

end-4 commented 11 months ago

especially if i dont wonna pay

nah it's free if you don't use it too much

make it optional

provide more docs

I already documented some of the non-obvious stuff on the wiki page. It would really help if you could specify what needs to be clarified. Thanks!

harshafaik commented 9 months ago

You can make ChatGPT work by changing the endpoint address in the chatgpt.js file to some service that can offer a free API key for use. I changed it, got an API key and it worked fine. :)

end-4 commented 9 months ago

There's now Google Gemini. It's also free (but it isn't directly compatible with the code for the ChatGPT API) @harshafaik if you don't mind, what's that other free service?

harshafaik commented 9 months ago

I can't access Google Gemini API due to regional restrictions. :sob: As for chatGPT, I looked up for APIs in the list mentioned here: https://github.com/zukixa/cool-ai-stuff/ (using Oxygen rn).

I can document it properly if that's something you want.

end-4 commented 9 months ago

very cool, thanks for sharing! also wow that repo has a piss tag

Task for me

end-4 commented 9 months ago

I added the first two models on that list. Feel free to suggest more.

image

Oxygen seems good. zukijourney sadly locks your key into your IP address. The recognition is poor and fails nearly all of the time (it could be my isp doing funny shit but idk), but I added it because I could at least confirm it works once. Those free stuff work but feel off... not as good as real ChatGPT. Personally I'm going to stick to Gemini.

emm-enn commented 9 months ago

I added the first two models on that list. Feel free to suggest more.

image

Oxygen seems good. zukijourney sadly locks your key into your IP address. The recognition is poor and fails nearly all of the time (it could be my isp doing funny shit but idk), but I added it because I could at least confirm it works once. Those free stuff work but feel off... not as good as real ChatGPT. Personally I'm going to stick to Gemini.

hey you are using the free version of gemini right? i mean the pro.. or have you paid for the ultra or whatever its called? also just wanted to ask where can i access this dropdown menu to change models from?

clsty commented 9 months ago

hey you are using the free version of gemini right? i mean the pro.. or have you paid for the ultra or whatever its called?

The AI widget does not contain any service, but just work as a client. You still need to get API key by yourself, unless it's not required for the service. (Unfortunately currently every AI service needs a key)

also just wanted to ask where can i access this dropdown menu to change models from?

screenshot

Click the OpenAI icon to switch to chatGPT and you'll see the dropdown menu. Also that's not for switching model, but just service endpoint.

emm-enn commented 9 months ago

ah thanks for the reply, idk why but I'm not getting that dropdown menu when clicking on thw openAI icon, I tried reinstalling the script and updating ags but the menu just doesn't come

clsty commented 9 months ago

ah thanks for the reply, idk why but I'm not getting that dropdown menu when clicking on thw openAI icon, I tried reinstalling the script and updating ags but the menu just doesn't come

Have you refered to the wiki?

Also you need to restart AGS (by default press Super+Ctrl+R) to make changes take effect.

end-4 commented 9 months ago

hey you are using the free version of gemini right? i mean the pro.. or have you paid for the ultra or whatever its called? also just wanted to ask where can i access this dropdown menu to change models from?

i'm using pro, which is free

emm-enn commented 9 months ago

ah thanks for the reply, idk why but I'm not getting that dropdown menu when clicking on thw openAI icon, I tried reinstalling the script and updating ags but the menu just doesn't come

Have you refered to the wiki?

Also you need to restart AGS (by default press Super+Ctrl+R) to make changes take effect.

yeah, did everything I wonder what's the problem.. Is there any troubleshooting steps I can do?

clsty commented 9 months ago

yeah, did everything I wonder what's the problem.. Is there any troubleshooting steps I can do?

If you did run git pull to get the latest repo, then it's kinda weird. A system reboot may help. If it still does not work, please run pkill ags;ags -t 'sideleft' and paste the output here.

Also I should remind you that ./update-ags.sh script only update AGS program, not its config. You should not skip the step of rsync on config/ags when running install.sh to update its config.

emm-enn commented 9 months ago

I did everything you mentioned.. still doesn't work :( , here's the output,

 (com.github.Aylur.ags:3282): Gjs-WARNING **: 14:54:40.795: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
  _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

rm: cannot remove '/home/em-en/.cache/ags/media/latex/*': No such file or directory
Gjs-Console-Message: 14:54:40.918: [LOG] Styles loaded
emm-enn commented 9 months ago

also just so you know I did install your dotfiles using your script, but then the resolution and everything was messed up so I switched to end's dotfiles by using his script again, any chance that might've been the problem?

clsty commented 9 months ago

also just so you know I did install your dotfiles using your script, but then the resolution and everything was messed up so I switched to end's dotfiles by using his script again, any chance that might've been the problem?

If you're refering to dots-hyprarch, there's no problem due to switching to this repo, because the install script will overwrite the whole config directory such as ~/.config/ags (I wrote both of the scripts so I can guarantee this).

clsty commented 9 months ago

I did everything you mentioned.. still doesn't work :( , here's the output,

 (com.github.Aylur.ags:3282): Gjs-WARNING **: 14:54:40.795: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
  _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

rm: cannot remove '/home/em-en/.cache/ags/media/latex/*': No such file or directory
Gjs-Console-Message: 14:54:40.918: [LOG] Styles loaded

About this log, I can't find anything suspicious... @end-4 any ideas?

@MNkoder FYI this is my output:

Click to expand ```plain (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:95:30: '' is not a valid color name (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:95:44: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:96:46: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:97:41: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:98:47: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:99:49: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:100:44: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:105:41: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:106:43: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:107:47: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:108:49: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:109:42: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:110:44: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:112:60: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:113:62: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:116:45: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:117:55: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:119:55: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:120:57: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:121:56: Expected a valid selector (com.github.Aylur.ags:13378): Gtk-WARNING **: 17:51:54.962: Theme parsing error: gtk.css:122:58: Expected a valid selector (com.github.Aylur.ags:13378): Gjs-WARNING **: 17:51:55.272: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise: _init/GLib.MainLoop.prototype.runAsync/
end-4 commented 9 months ago

in ~/.config/ags/config.js, image and show output

emm-enn commented 9 months ago

in ~/.config/ags/config.js, image and show output

the pkill ags;ags -t 'sideleft' output? here:

(com.github.Aylur.ags:118511): Gjs-WARNING **: 21:00:43.498: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
  _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

rm: cannot remove '/home/em-en/.cache/ags/media/latex/*': No such file or directory
Gjs-Console-Message: 21:00:43.629: [LOG] Styles loaded
end-4 commented 9 months ago

still the same?i must've forgotten .catch() somewhere...

emm-enn commented 9 months ago

this is it right? image

emm-enn commented 9 months ago

well hey I just reinstalled it again using the bash script and tada! now it works fine and the drop down menu is visible! thanks for the help guys <3

clsty commented 9 months ago

Closing as completed.