betalgo / openai

OpenAI .NET sdk - Azure OpenAI, ChatGPT, Whisper, and DALL-E
https://betalgo.github.io/openai/
MIT License
2.84k stars 513 forks source link

How to Customize the API's Base URL in SDK Initialization? #519

Closed phoben closed 2 months ago

phoben commented 2 months ago

Due to my location being in a region where access to OpenAI's API URLs is restricted, I'm unable to directly access OpenAI's services. However, I have the option to use alternative mirror URLs for making API calls. Could you guide me on how to specify a custom BaseDomain during the SDK initialization process? This customization would enable me to utilize the SDK in my restricted access region by directing requests through an accessible mirror URL. Thank you for your assistance.