Skip to content

jghg02/OpenAISPM

Repository files navigation

OpenAISPM

Swift Package Manager

You can use Swift Package Manager to integrate the library by adding the following dependency in the Package.swift file or by adding it directly within Xcode.

.Package(url: "https://github.com/jghg02/OpenAISPM")

Usage

Import OpenAISPM

You need create a OpenAI API Key in this link is very important to use when I create an instance for the class OpenAIAPI

let openAIAPI = OpenAIAPI(apiKey: "YOUR_API_KEY")
let result = try! await openAIAPI.sendMessage(text: "Your message here")

The result contain the response you get from OpenAI.

About

OpenAI Swift Package Manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages