Open BeatlesCoder opened 1 year ago
Hi @BeatlesCoder,
Since this package is specifically for OpenAI, I do not see a use case where a custom base URL would be used. Could you elaborate on the need for having this? For special cases where a developer using the same API structure accessed from a custom path could work on a package fork, I assume this is not a common situation.
Hi @BeatlesCoder, could #76 be a use case for this?
In fact, customizing the base URL is very useful for situations where direct access to the official OpenAI address is not possible or where a proxy is needed, such as in China.
Allow custom BASE_PATH, which are passed in when new OpenAIAPI.