dylanshine / openai-kit

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

Custom API Support #38

Closed dylanshine closed 1 year ago

dylanshine commented 1 year ago

@ronaldmannak based on your ask, here is an implementation for supporting custom URLs.

Configuration now allows you to provide an API object that lets you define a custom scheme and host. If an API is provided, the URL will be used to override all Request schemes and hosts throughout the framework.

retrieveFileContent has also been tweaked to support a generic return value.

ronaldmannak commented 1 year ago

This is great. Thanks so much. I'll experiment with this and open source a Lambda proxy server