Skip to content

Commit 88ccdb3

Browse files
committed
Remove unnecessary codes
1 parent abd2521 commit 88ccdb3

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

Core/Sources/Preferences/ChatGPTModel.swift

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,11 @@ public enum ChatGPTModel: String {
88

99
public extension ChatGPTModel {
1010
var endpoint: String {
11-
switch self {
12-
case .gpt35Turbo:
13-
return "https://api.openai.com/v1/chat/completions"
14-
case .gpt35Turbo0301:
15-
return "https://api.openai.com/v1/chat/completions"
16-
}
11+
"https://api.openai.com/v1/chat/completions"
1712
}
1813

1914
var maxToken: Int {
20-
switch self {
21-
case .gpt35Turbo:
22-
return 2049
23-
case .gpt35Turbo0301:
24-
return 2049
25-
}
15+
2049
2616
}
2717
}
2818

0 commit comments

Comments
 (0)