Bug gixes, features added, GUI updates and more
This commit is contained in:
@@ -42,6 +42,7 @@ struct ContentView: View {
|
||||
selectedModel: chatViewModel.selectedModel,
|
||||
onSelect: { model in
|
||||
chatViewModel.selectedModel = model
|
||||
SettingsService.shared.defaultModel = model.id
|
||||
chatViewModel.showModelSelector = false
|
||||
}
|
||||
)
|
||||
@@ -77,6 +78,11 @@ struct ContentView: View {
|
||||
.sheet(item: $vm.modelInfoTarget) { model in
|
||||
ModelInfoView(model: model)
|
||||
}
|
||||
.sheet(isPresented: $vm.showHistory) {
|
||||
HistoryView(onSelect: { input in
|
||||
chatViewModel.inputText = input
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
#if os(macOS)
|
||||
@@ -91,11 +97,17 @@ struct ContentView: View {
|
||||
.help("New conversation")
|
||||
|
||||
Button(action: { chatViewModel.showConversations = true }) {
|
||||
Label("History", systemImage: "clock.arrow.circlepath")
|
||||
Label("Conversations", systemImage: "clock.arrow.circlepath")
|
||||
}
|
||||
.keyboardShortcut("l", modifiers: .command)
|
||||
.help("Saved conversations (Cmd+L)")
|
||||
|
||||
Button(action: { chatViewModel.showHistory = true }) {
|
||||
Label("History", systemImage: "list.bullet")
|
||||
}
|
||||
.keyboardShortcut("h", modifiers: .command)
|
||||
.help("Command history (Cmd+H)")
|
||||
|
||||
Spacer()
|
||||
|
||||
Button(action: { chatViewModel.showModelSelector = true }) {
|
||||
|
||||
Reference in New Issue
Block a user