File tree 2 files changed +3
-3
lines changed
Sources/openai-async-image-swiftui
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import SwiftUI
12
12
public struct OpenAIDefaultLoaderKey : EnvironmentKey {
13
13
public typealias Value = OpenAIDefaultLoader
14
14
15
- public static var defaultValue = OpenAIDefaultLoader ( endpoint: OpenAIImageEndpoint . get ( with: " " ) )
15
+ public static let defaultValue = OpenAIDefaultLoader ( endpoint: OpenAIImageEndpoint . get ( with: " " ) )
16
16
}
17
17
18
18
public extension EnvironmentValues {
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ public struct OpenAIImageEndpoint: IOpenAIImageEndpoint {
14
14
// MARK: - Static Properties
15
15
16
16
/// Static base URL for the OpenAI image resource
17
- public static var urlString = " https://api.openai.com "
17
+ public static let urlString = " https://api.openai.com "
18
18
19
19
/// Static path to the specific endpoint for generating images
20
- public static var path = " /v1/images/generations "
20
+ public static let path = " /v1/images/generations "
21
21
22
22
/// Creates an instance of `OpenAIImageEndpoint` with the provided API key
23
23
/// - Parameter apiKey: API key for accessing the OpenAI API
You can’t perform that action at this time.
0 commit comments