dylanshine / openai-kit

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

Example for usage of openai-kit #34

Closed SaurabhPrajapati closed 1 year ago

SaurabhPrajapati commented 1 year ago

@dylanshine This seems to be nice library for integration of OpenAI. I m here just suggesting if you can include Example of how to use this. e.g. usage with env variables and usage without env variables and demonstrating usage of basic classes.

dylanshine commented 1 year ago

I think the difficulty with giving examples of injecting env variables is that there are so many different iOS and SSS frameworks to support. I would encourage consumers of this framework to research idiomatic patterns to handle env variables.

SaurabhPrajapati commented 1 year ago

This wasn't about just environment variables, actually it will be better to have some running example so users can download and run by just updating the API Key.

dylanshine commented 1 year ago

Literally what the test suite is used for.