CleverBird is a Swift Package that provides a convenient way to interact with OpenAI's GPT-4 API and perform various tasks, including token counting and encoding. The package mainly focuses on the OpenAIClient
and TokenEncoder
classes.
- Asynchronous API calls with Swift's async/await syntax
- Supports token counting and encoding with the
TokenEncoder
class - Allows customization of various parameters, such as temperature and penalties
- Easily adjustable to support future changes or additional OpenAI API endpoints