Skip to content

Commit 2d8cf55

Browse files
authored
Merge pull request #245 from MacPaw/feat/o1
Feat/o1
2 parents c1c4db6 + e51da0e commit 2d8cf55

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Demo/DemoChat/Sources/AssistantStore.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public final class AssistantStore: ObservableObject {
9393
return nil
9494
}
9595
}
96-
let fileIds = result.toolResources.codeInterpreter?.fileIds ?? []
96+
let fileIds = result.toolResources?.codeInterpreter?.fileIds ?? []
9797

9898
assistants.append(Assistant(id: result.id, name: result.name ?? "", description: result.description, instructions: result.instructions, codeInterpreter: codeInterpreter, fileSearch: fileSearch, fileIds: fileIds, functions: functions))
9999
}

Sources/OpenAI/Public/Models/Models/Models.swift

+10
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ public typealias Model = String
1010

1111
public extension Model {
1212
// Chat Completion
13+
14+
// o1 series
15+
// The o1 series of models are trained with reinforcement learning to perform complex reasoning. o1 models think before they answer, producing a long internal chain of thought before responding to the user.
16+
17+
/// `o1`: reasoning model designed to solve hard problems across domains
18+
static let o1 = "o1"
19+
20+
/// `o1-mini`: fast and affordable reasoning model for specialized tasks
21+
static let o1_mini = "o1-mini"
22+
1323
// GPT-4
1424

1525
/// `gpt-4o`, currently the most advanced, multimodal flagship model that's cheaper and faster than GPT-4 Turbo.

0 commit comments

Comments
 (0)