Everything you need to get started
Get up and running in minutes with our step-by-step guide.
https://github.com/user/SwiftAIKit-iOSpod 'SwiftAIKit'Initialize the client and make your first AI request
import SwiftAIKit
let config = AIConfiguration(
apiKey: "your-api-key",
bundleId: Bundle.main.bundleIdentifier!
)
let client = AIClient(configuration: config)
// Make a chat completion request
let response = try await client.chat.completions(
model: "gpt-4",
messages: [
.user("Hello, how are you?")
]
)
print(response.choices.first?.message.content ?? "")