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
8.84k stars 696 forks source link

Ollama ResponseNotRead: Attempted to access streaming response content, without having called read() #524

Open electriquo opened 3 months ago

electriquo commented 3 months ago

i get the following error when trying sgpt with ollama

ResponseNotRead: Attempted to access streaming response content, without having called `read()`.

relates to https://github.com/TheR1D/shell_gpt/discussions/503#discussioncomment-8901323

Robinsane commented 2 months ago

I got Ollama working (in a container) Checking the environment variables I set in the example ollama Dockerfile at #540 could possibly help you :)

electriquo commented 2 months ago

it has noting to do with container per-se. even if ollama is running natively (without any container), the issue still happens. i had to switch to aichat to resolve the issue.

Robinsane commented 2 months ago

it has noting to do with container per-se. even if ollama is running natively (without any container), the issue still happens. i had to switch to aichat to resolve the issue.

I only pointed to environment variables that could've possibly helped you, no need run in a container env ;)