Skip to content

Commit a8bf018

Browse files
committed
update
1 parent cbe62bc commit a8bf018

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/openai-async-image-swiftui/environmentKey/OpenAIAsyncImageLoaderKey.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import SwiftUI
1212
public 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

1818
public extension EnvironmentValues{

Sources/openai-async-image-swiftui/net/OpenAIImageEndpoint.swift

+2-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)