@@ -16,9 +16,6 @@ public struct OpenAIImageEndpoint: IOpenAIImageEndpoint{
16
16
/// Base url to OpenAPI image resource
17
17
public static var urlString = " https://api.openai.com "
18
18
19
- /// Http method
20
- public static var httpMethod = " POST "
21
-
22
19
/// Path to the point
23
20
public static var path = " /v1/images/generations "
24
21
@@ -27,7 +24,6 @@ public struct OpenAIImageEndpoint: IOpenAIImageEndpoint{
27
24
static public func get( with apiKey: String ) -> Self {
28
25
. init(
29
26
urlString: Self . urlString,
30
- httpMethod: Self . httpMethod,
31
27
apiKey: apiKey,
32
28
path: Self . path)
33
29
}
@@ -37,14 +33,11 @@ public struct OpenAIImageEndpoint: IOpenAIImageEndpoint{
37
33
/// Base url to OpenAPI image resource
38
34
public let urlString : String
39
35
40
- /// Http method
41
- public let httpMethod : String
36
+ /// Path to the point
37
+ public let path : String
42
38
43
39
/// Api key for access
44
40
public let apiKey : String
45
-
46
- /// Path to the point
47
- public let path : String
48
41
49
42
// MARK: - Life circle
50
43
@@ -53,9 +46,8 @@ public struct OpenAIImageEndpoint: IOpenAIImageEndpoint{
53
46
/// - httpMethod: Http method
54
47
/// - apiKey: Api key for access
55
48
/// - path: Path to the point
56
- public init ( urlString: String , httpMethod : String , apiKey: String , path: String ) {
49
+ public init ( urlString: String , apiKey: String , path: String ) {
57
50
self . urlString = urlString
58
- self . httpMethod = httpMethod
59
51
self . apiKey = apiKey
60
52
self . path = path
61
53
}
0 commit comments