File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ struct OpenAIView: View {
4242
4343 HStack {
4444 Picker ( selection: $settings. chatGPTModel) {
45- ForEach ( ChatGPTModel . allCases, id: \. hashValue ) { model in
45+ ForEach ( ChatGPTModel . allCases, id: \. self ) { model in
4646 Text ( model. rawValue) . tag ( model. rawValue)
4747 }
4848 } label: {
@@ -60,15 +60,13 @@ struct OpenAIView: View {
6060 settings. chatGPTMaxToken = model. maxToken
6161 }
6262
63- HStack {
63+ Picker ( selection: $settings. chatGPTLanguage) {
64+ ForEach ( ChatGPTLanguage . allCases, id: \. self) { language in
65+ Text ( language. fullName) . tag ( language. rawValue)
66+ }
67+ } label: {
6468 Text ( " Reply in Language " )
65- TextField (
66- text: $settings. chatGPTLanguage,
67- prompt: Text ( " e.g. English. Leave it blank to let the bot decide. " )
68- ) {
69- EmptyView ( )
70- } . textFieldStyle ( . copilot)
71- }
69+ } . pickerStyle ( . menu)
7270 }
7371 }
7472 }
You can’t perform that action at this time.
0 commit comments