ACMOpenAI
ACMOpenAI is a library that help developers to use Open AI API easily.
Install
Via Cocoapods
pod 'ACMOpenAI'
Via SPM, add new package, search url below
https://github.com/AppcentMobile/ACMOpenAI-iOS
Basic Usage
- Create plist file called ACMConfig
Add these keys
baseURL (String)(without http(s)) isLogEnabled (Bool) timeout (Number) apiKey (String)
Make request!
ACMOpenAI().manager(item: ACMOAIModelsManager.self) .list { (response: ACMOAIModelsResponse.List) in print(response) } onError: { error in print(error) }
Documentation
License
- Apache License 2.0 (LICENCE-Apache-2.0 or https://opensource.org/license/apache-2-0/)