Skip to content

Commit 36c3d41

Browse files
committed
Make ChatGPT Model conforms to CaseIterable
1 parent 71577bd commit 36c3d41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/ChatGPTSwift/AuthMiddleware.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@ extension ChatGPTModel: Identifiable, CustomStringConvertible {
2929
public var id: String { self.rawValue }
3030
public var description: String { id }
3131

32+
static var all: [ChatGPTModel] {
33+
Self.allCases
34+
}
35+
3236
}

0 commit comments

Comments
 (0)