shell_gpt icon indicating copy to clipboard operation
shell_gpt copied to clipboard

How to use with LightLLM proxy

Open fellnerse opened this issue 6 months ago • 2 comments

I would like to use sgpt with LightLLM proxy, but I only get this error:

Error: error, status code: 404, message: %!s(<nil>)

Any idea on what I'm doing wrong? The config is this:

maxtokens: 2048
model: bedrock-claude-v3.7
temperature: "1"
topp: "1"

fellnerse avatar Jun 27 '25 07:06 fellnerse

You might need to set API_BASE_URL to your litellm proxy. And the model string should be bedrock/claude-...

ChaosEternal avatar Aug 10 '25 12:08 ChaosEternal

This does work btw, I've done it. But it requires the proxy to be running in many cases because right now sgpt does not support passing in args to configure LiteLLM nor any way (I can find) to set a path to the LiteLLM config file. The CONFIG_FILE_PATH argument that LiteLLM Proxy uses does not seem to be honored by the SDK.

brandon-fryslie avatar Sep 15 '25 16:09 brandon-fryslie