Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a8bf018

Browse files
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /