srcnalt / OpenAI-Unity

An unofficial OpenAI Unity Package that aims to help you use OpenAI API directly in Unity Game engine.
MIT License
648 stars 144 forks source link

custom BASE_PATH #72

Open BeatlesCoder opened 1 year ago

BeatlesCoder commented 1 year ago

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

srcnalt commented 12 months 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.

srcnalt commented 12 months ago

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

redclock commented 4 months ago

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.