File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Sources/openai-async-image-swiftui Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import SwiftUI
1212public struct OpenAIDefaultLoaderKey : EnvironmentKey {
1313 public typealias Value = OpenAIDefaultLoader
1414
15- public static var defaultValue = OpenAIDefaultLoader ( endpoint: OpenAIImageEndpoint . get ( with: " " ) )
15+ public static let defaultValue = OpenAIDefaultLoader ( endpoint: OpenAIImageEndpoint . get ( with: " " ) )
1616}
1717
1818public extension EnvironmentValues {
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ public struct OpenAIImageEndpoint: IOpenAIImageEndpoint {
1414 // MARK: - Static Properties
1515
1616 /// 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 "
1818
1919 /// 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 "
2121
2222 /// Creates an instance of `OpenAIImageEndpoint` with the provided API key
2323 /// - Parameter apiKey: API key for accessing the OpenAI API
You can’t perform that action at this time.
0 commit comments