What was reported:
Issue TransformerOptimus/SuperAGI#243 (closed, 25 comments): Add support for the OPENAI_API_BASE endpoint environment variable. Ideally add input for "OpenAI API Endpoint" in GUI TopBar / Settings under "Open-AI API Key". This is important because it will allow pointing to any OpenAI API compatible drop-in: ChatGPT-to-API, llama-cpp-python, oobabooga text-generation-webui.
What works:
[kenfink (reporter)]: Workaround until native support lands: in llms/openai.py, under the line that sets the API key, add openai.api_base pointing at your compatible endpoint. Then in the web UI, put your endpoint URL (e.g. https://example.com no trailing slash, the backend adds it) into the OpenAI API Key field. Confirmed working for OpenAI-compatible drop-ins like llama-cpp-python.