Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.28 KB

File metadata and controls

49 lines (37 loc) · 1.28 KB

ACMOpenAI

ACMOpenAI is an unofficial library that help developers to use Open AI API easily.

GitHub tag License issues - ACMOpenAI-iOS

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)
organization (String|Optional)
  • Make request!
ACMOpenAI().manager(item: ACMOAIModelsManager.self)
.list { (response: ACMOAIModelsResponse.List) in
    print(response)
} onError: { error in
    print(error)
}

Documentation

view - Documentation

License