This adds support for the OPENAI_API_BASE environment variable, a standard way to redirect the other openai clients (openai-python & openai-node). It enables support of alternate openai compatible implementations, like https://github.com/oobabooga/text-generation-webui
I compiled and ran the tests against text-generation-webui and for the working portions it was successful (it's not a complete re-implementation).
This adds support for the OPENAI_API_BASE environment variable, a standard way to redirect the other openai clients (openai-python & openai-node). It enables support of alternate openai compatible implementations, like https://github.com/oobabooga/text-generation-webui
I compiled and ran the tests against text-generation-webui and for the working portions it was successful (it's not a complete re-implementation).