Skip to content

Commit

Permalink
Update OpenAIDefaultLoader.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
swiftuiux committed Jul 3, 2024
1 parent ba47dfc commit af553e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public final class OpenAIDefaultLoader : IOpenAILoader{

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

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

guard let client = client else{
Expand Down

0 comments on commit af553e5

Please sign in to comment.