ACMOpenAI is an unofficial library that help developers to use Open AI API easily.
Via Cocoapods
pod 'ACMOpenAI'
Via SPM, add new package, search url below
https://github.com/AppcentMobile/ACMOpenAI-iOS
- Create plist file called ACMConfig
- Add these keys
baseURL (String)(without http(s))
isLogEnabled (Bool)
timeout (Number)
apiKey (String)
organization (String|Optional)
- Make request!
ACMOpenAI().manager(item: ACMOAIModelsManager.self)
.list { (response: ACMOAIModelsResponse.List) in
print(response)
} onError: { error in
print(error)
}