Skip to content

Open AI Library helps developer interacts with API easily

License

Notifications You must be signed in to change notification settings

AppcentMobile/ACMOpenAI-iOS

Repository files navigation

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