TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
9.76k stars 769 forks source link

User shell_gpt with remote ollama server? #639

Closed somera closed 3 weeks ago

somera commented 3 weeks ago

Hi,

is there a way to user communicate with en ollama server?

My try was to set API_BASE_URL. But It's not working.

The request will be made

request = <Request('POST', 'http://xxx.xxx.xxx.xxx:11434/chat/completions')>

I see this image

But this is wrong for ollama. It should be /api/chat.

It would be good if that were possible.

somera commented 3 weeks ago

I moved to discussion.