Skip to content

Commit 3be73a8

Browse files
committed
Fix window size of embedding model edit view
1 parent 7709c0b commit 3be73a8

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ struct EmbeddingModelEditView: View {
6363
.onAppear {
6464
store.send(.appear)
6565
}
66+
.fixedSize(horizontal: false, vertical: true)
6667
}
6768

6869
var nameTextField: some View {
@@ -219,6 +220,17 @@ struct EmbeddingModelEditView: View {
219220
}
220221

221222
maxTokensTextField
223+
224+
VStack(alignment: .leading, spacing: 8) {
225+
Text(Image(systemName: "exclamationmark.triangle.fill")) + Text(
226+
" To get an API key, please visit [https://platform.openai.com/api-keys](https://platform.openai.com/api-keys)"
227+
)
228+
229+
Text(Image(systemName: "exclamationmark.triangle.fill")) + Text(
230+
" If you don't have access to GPT-4, you may need to visit [https://platform.openai.com/account/billing/overview](https://platform.openai.com/account/billing/overview) to buy some credits. A ChatGPT Plus subscription is not enough to access GPT-4 through API."
231+
)
232+
}
233+
.padding(.vertical)
222234
}
223235

224236
@ViewBuilder

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct EmbeddingModelManagementView: View {
1212
action: EmbeddingModelManagement.Action.embeddingModelItem
1313
)) { store in
1414
EmbeddingModelEditView(store: store)
15-
.frame(minWidth: 400)
15+
.frame(width: 800)
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)