Skip to content

Commit

Permalink
include the dall-e-3 ImageQuery.Size cases
Browse files Browse the repository at this point in the history
  • Loading branch information
James J Kalafus committed Feb 17, 2024
1 parent 8387488 commit ee0885f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Demo/DemoChat/Sources/UI/Images/ImageCreationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public struct ImageCreationView: View {
@State private var n: Int = 1
@State private var size = ImagesQuery.Size._1024

private var sizes = ImagesQuery.Size.allCases
private var sizes = ImagesQuery.Size.allCases.dropLast(2)

public init(store: ImageStore) {
self.store = store
Expand Down
4 changes: 2 additions & 2 deletions Sources/OpenAI/Public/Models/ImagesQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public enum ResponseFormat: String, Codable, Equatable {
case _256 = "256x256"
case _512 = "512x512"
case _1024 = "1024x1024"
//case _1792_1024 = "1792x1024" // for dall-e-3 models
//case _1024_1792 = "1024x1792" // for dall-e-3 models
case _1792_1024 = "1792x1024" // for dall-e-3 models
case _1024_1792 = "1024x1792" // for dall-e-3 models
}
}

0 comments on commit ee0885f

Please sign in to comment.