Skip to content

Commit af553e5

Browse files
committed
Update OpenAIDefaultLoader.swift
1 parent ba47dfc commit af553e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/openai-async-image-swiftui/viewModel/OpenAIDefaultLoader.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public final class OpenAIDefaultLoader : IOpenAILoader{
5050

5151
let body = Input(prompt: prompt, size: size, response_format: .b64, n: 1)
5252

53-
let headers = ["Authorization": "Bearer \(endpoint.apiKey)"]
53+
let headers = ["Content-Type": "application/json","Authorization": "Bearer \(endpoint.apiKey)"]
5454
let path = endpoint.path
5555

5656
guard let client = client else{

0 commit comments

Comments
 (0)