end-4 / dots-hyprland

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

Share your AI ideas! #754

Open hakangoksu opened 3 weeks ago

hakangoksu commented 3 weeks ago

Connecting/using openwebui in the left bar should be the perfect thing. I want to add my own models that are working in my pc and openwebui is perfect for it. It can download-start ollama models. Integrating with your sidebar would be perfect.

My idea is:

Making 4 section just 2 main section. Online and local

In online using api keys etc.

In local section integrating with openwebui. Changing between our models -presets

Designing, I believe you guys make the best. So please let me know what are you thinking about these ideas? If I can help, I would gladly do it as much as I can also.

Kalidude69 commented 3 weeks ago

not everyone has great pc for running local vast ai models .. that also devs have to take into consideration :) the Ai models included now pretty much do the work if not all.... anyways linux is all about freedom

hakangoksu commented 3 weeks ago

Yes, the thing with that API's I can't access literally nothing. Gemini doesn't provide api's in my country and chatgpt doesnt work for some reason. In anycase chatgpt is not free. I like to use my own ai's. And they don't require toooo high specs btw. You can get gpt3.0 level with ~8 gb ram like the one I'm using is llama3.1. There are also model that work ~2gb even. I know it is not very good but there are models for any pc specs in ollama where the openwebui connects to.

I would really like to use my ai models integrated to this end-4's hyprland.

braveltd commented 3 weeks ago

Yes, the thing with that API's I can't access literally nothing. Gemini doesn't provide api's in my country and chatgpt doesnt work for some reason. In anycase chatgpt is not free. I like to use my own ai's. And they don't require toooo high specs btw. You can get gpt3.0 level with ~8 gb ram like the one I'm using is llama3.1. There are also model that work ~2gb even. I know it is not very good but there are models for any pc specs in ollama where the openwebui connects to.

I would really like to use my ai models integrated to this end-4's hyprland.

same thing for me. I live in russia, and there's gemini, chatgpt, other's aren't working without vpn. i use openrouter and oxygen (which is limited). so would like to see some vpn for end-4 dots

Kalidude69 commented 3 weeks ago

Yes, the thing with that API's I can't access literally nothing. Gemini doesn't provide api's in my country and chatgpt doesnt work for some reason. In anycase chatgpt is not free. I like to use my own ai's. And they don't require toooo high specs btw. You can get gpt3.0 level with ~8 gb ram like the one I'm using is llama3.1. There are also model that work ~2gb even. I know it is not very good but there are models for any pc specs in ollama where the openwebui connects to.

I would really like to use my ai models integrated to this end-4's hyprland.

Alright you also have a point tho!!

hakangoksu commented 3 weeks ago

Okay, I managed to do some stuff by myself. I want to update and contribute to the project also.

For now here is what you can do: ~/.config/ags/services/gps.js

In the provider section, you can change order and add your own

Here is an example for llama3.1:8b (since I dont want to use llama3:instruct)

'ollama3.1': { //Change title, I think its important since its defined here
        'name': 'Ollama (Llama 3.1)', //You can change name. This will display on the bar
        'logo_name': 'ollama-symbolic',
        'description': 'Official Ollama API.\nPricing: Free.', //You can add description
        'base_url': 'http://localhost:11434/v1/chat/completions', 
        'key_get_url': 'it\'s just ollama',
        'key_file': 'ollama_key.txt', 
        'model': 'llama3.1:8b, //here you change the model. This is important
    },

After you made changes simply write "ags -q" to the bash and either write "ags &" or simply press super which will activate ags anyways.

I'm still trying to understand how this dots-hyprland made the ai system. If I can do something useful by myself I want to contribute to the project if people likes..

andresparrab commented 3 weeks ago

I would love to see chat gpt integrated. I have in in the terminal, in Jetbrains Rider, browser and more.. but on the side woul be anice companion :)

Kalidude69 commented 3 weeks ago

I would love to see chat gpt integrated. I have in in the terminal, in Jetbrains Rider, browser and more.. but on the side woul be anice companion :)

sir there is openai on the side panel for that you would need to pay for the api usage..

andresparrab commented 3 weeks ago

oh of course..sorry it was dumb of me i saw it now

Kalidude69 commented 3 weeks ago

oh of course..sorry it was dumb of me i saw it now

it's fine no need to be sorry :D

andresparrab commented 3 weeks ago

but how about integrate bling copilot..it is really god and github copilot that would be great :)

pandalec commented 2 weeks ago

It would be nice, if I could easily disable all unused AI providers. And it would be also nice if AGS could read env variables as most of AI tools which I use already read the key from an env var

end-4 commented 2 weeks ago

but how about integrate bling copilot..it is really god and github copilot that would be great :)

Can't, there's no api. I'm not doing scraping stuff, it's just painful Of course Microsoft is keeping it to themself

end-4 commented 2 weeks ago

It would be nice, if I could easily disable all unused AI providers. And it would be also nice if AGS could read env variables as most of AI tools which I use already read the key from an env var

doable mind sharing what the env var names are?

pandalec commented 2 weeks ago

It would be nice, if I could easily disable all unused AI providers. And it would be also nice if AGS could read env variables as most of AI tools which I use already read the key from an env var

doable mind sharing what the env var names are?

Sure, thanks for looking into this

OPENAI_API_KEY=key
OPENAI_MODEL=gpt-4o-mini # gpt-4o
DEFAULT_MODEL=gpt-4o-mini # gpt-4o
OPENAI_MAX_TOKENS=16384
HANDLER=openai # openai/copilot/codeium

I have these configured for shell-gpt and helix-gpt

andresparrab commented 2 weeks ago

How about github copilot?