We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd808b3 commit db83637Copy full SHA for db83637
1 file changed
Core/Sources/Preferences/ChatGPTModel.swift
@@ -1,6 +1,14 @@
1
import Foundation
2
3
public enum ChatGPTModel: String {
4
+ case gpt4 = "gpt-4"
5
+
6
+ case gpt40314 = "gpt-4-0314"
7
8
+ case gpt432k = "gpt-4-32k"
9
10
+ case gpt432k0314 = "gpt-4-32k-0314"
11
12
case gpt35Turbo = "gpt-3.5-turbo"
13
14
case gpt35Turbo0301 = "gpt-3.5-turbo-0301"
@@ -12,7 +20,20 @@ public extension ChatGPTModel {
20
}
21
22
var maxToken: Int {
15
- 4096
23
+ switch self {
24
+ case .gpt4:
25
+ return 8192
26
+ case .gpt40314:
27
28
+ case .gpt432k:
29
+ return 32768
30
+ case .gpt432k0314:
31
32
+ case .gpt35Turbo:
33
+ return 4096
34
+ case .gpt35Turbo0301:
35
36
+ }
16
37
17
38
18
39
0 commit comments