OpenAI-Unity icon indicating copy to clipboard operation
OpenAI-Unity copied to clipboard

custom BASE_PATH

Open BeatlesCoder opened this issue 2 years ago • 3 comments

Allow custom BASE_PATH, which are passed in when new OpenAIAPI.

BeatlesCoder avatar Jul 11 '23 13:07 BeatlesCoder

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.

srcnalt avatar Jul 17 '23 21:07 srcnalt

Hi @BeatlesCoder, could #76 be a use case for this?

srcnalt avatar Jul 19 '23 09:07 srcnalt

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.

redclock avatar Feb 29 '24 15:02 redclock