adamrushy / OpenAISwift

This is a wrapper library around the ChatGPT and OpenAI HTTP API
MIT License
1.6k stars 242 forks source link

reade the API key from plist file or iOS Target Properties #64

Closed a-elnajjar closed 1 year ago

a-elnajjar commented 1 year ago

Can we add a feature to read the API key from Info.plist file in UIkit or iOS Target Properties switUI?

workingDog commented 1 year ago

I think this is not such a great idea. The API key should be stored in keychain, not in plain text in a file.

bogdanf commented 1 year ago

Please don't store the API key in such an obvious way. But if you must, it's easy to implement the "feature" in your own code and just "feed" the API key string to the OpenAISwift.

adamrushy commented 1 year ago

Yeah, this is a client level decision! Closing issue 👍🏼