Skip to content

Commit bb9012a

Browse files
committed
Add open weight models
1 parent 16e7079 commit bb9012a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Sources/OpenAI/Model.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,24 @@ extension Model {
3737
public static let gpt5_chat: Model = "gpt-5-chat-latest"
3838
}
3939

40+
// MARK: - Open weight models
41+
42+
extension Model {
43+
/// `gpt-oss-120b` is the most powerful open weight model, which fits into a single H100 GPU
44+
/// (117B parameters with 5.1B active parameters).
45+
///
46+
/// * Context window: 131,072
47+
/// * Max output tokens: 131,072
48+
public static let gpt_oss_120b = "gpt-oss-120b"
49+
50+
/// `gpt-oss-20b` is a medium-sized open model for low latency, local, or specialized use-cases
51+
/// (21B parameters with 3.6B active parameters).
52+
///
53+
/// * Context window: 131,072
54+
/// * Max output tokens: 131,072
55+
public static let gpt_oss_20b = "gpt-oss-20b"
56+
}
57+
4058
// MARK: - GPT-4.1
4159

4260
extension Model {

0 commit comments

Comments
 (0)