Skip to content

Commit 90b72d1

Browse files
committed
Fix max token display
1 parent 3bce5a8 commit 90b72d1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Core/Sources/HostApp/AccountSettings/EmbeddingModelManagement/EmbeddingModelEdit.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct EmbeddingModelEdit: ReducerProtocol {
4646
Scope(state: \.apiKeySelection, action: /Action.apiKeySelection) {
4747
APIKeySelection()
4848
}
49-
49+
5050
Scope(state: \.baseURLSelection, action: /Action.baseURLSelection) {
5151
BaseURLSelection()
5252
}
@@ -123,7 +123,7 @@ struct EmbeddingModelEdit: ReducerProtocol {
123123

124124
case .apiKeySelection:
125125
return .none
126-
126+
127127
case .baseURLSelection:
128128
return .none
129129

@@ -151,6 +151,7 @@ extension EmbeddingModelEdit.State {
151151
id: model.id,
152152
name: model.name,
153153
format: model.format,
154+
maxTokens: model.info.maxTokens,
154155
modelName: model.info.modelName,
155156
apiKeySelection: .init(
156157
apiKeyName: model.info.apiKeyName,

0 commit comments

Comments
 (0)