shell_gpt icon indicating copy to clipboard operation
shell_gpt copied to clipboard

API_BASE_URL not honoured.

Open SohamG opened this issue 4 months ago • 1 comments

Since additional kwargs is set to empty object, the API_BASE_URL config item is lost and not passed to the openai completion function. My use case is to use OpenRouter instead of openai.

Edit: Issue may be due to some other issue, now that I look into it, but I don't know where. https://github.com/TheR1D/shell_gpt/blob/9615dfbec856c1e1822adc4d9e4a3a3035a002b0/sgpt/handlers/handler.py#L13

SohamG avatar Aug 02 '25 01:08 SohamG

Can you elaborate more on this? I am using ollama without litellm and it works fine after setting the API_BASE_URL. Have you tried setting it as an environment variable?

ChaosEternal avatar Aug 10 '25 12:08 ChaosEternal