dylanshine / openai-kit

A community Swift package used to interact with the OpenAI API
https://platform.openai.com/docs/api-reference
MIT License
692 stars 107 forks source link

Path prefix for proxy #55

Closed ftp27 closed 1 year ago

ftp27 commented 1 year ago

I've made a simple golang proxy server for OpenAI and faced unavailability with defining prefix path for API structure. For example, in my server, I have auth path:

and API paths

So we need to set up an API prefix /proxy/openai to use the framework. I already made the necessary changes to support the feature, but I think better to start with creating an issue instead of a push request.

dylanshine commented 1 year ago

Sounds good @ftp27, post your PR whenever