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

Unable to change OPENAI_BASE_URL in .sgptrc #473

Closed johnd0e closed 4 months ago

johnd0e commented 4 months ago

This line present in default sgptrc:

OPENAI_BASE_URL=https://api.openai.com/v1

I change that line, but that has no effect. I can see that for example in error messages (api_base = 'https://api.openai.com/v1').

And that is no surprise, the value in config seems unused https://github.com/search?q=repo%3ATheR1D%2Fshell_gpt%20OPENAI_BASE_URL&type=code

TheR1D commented 4 months ago

Hi @johnd0e, thank you for reporting this issue. I can confirm that the OPENAI_BASE_URL is not being used after the latest release. We will address this in upcoming updates.