16 lines
442 B
Swift
16 lines
442 B
Swift
import Foundation
|
|
|
|
public struct AppConfiguration: Equatable, Sendable {
|
|
public let openAIAPIKey: String?
|
|
|
|
public init(openAIAPIKey: String?) {
|
|
self.openAIAPIKey = openAIAPIKey
|
|
}
|
|
|
|
public static func development(environment: [String: String] = ProcessInfo.processInfo.environment) -> AppConfiguration {
|
|
AppConfiguration(
|
|
openAIAPIKey: environment["MUSIC_ASSISTANT_OPENAI_API_KEY"]
|
|
)
|
|
}
|
|
}
|