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 af553e5

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

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

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