File tree Expand file tree Collapse file tree
Core/Sources/ChatGPTChatTab Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public class ChatGPTChatTab: ChatTab {
4545 return nil
4646 }
4747
48- return [ Builder ( title: " ChatGPT " , customCommand: nil ) ] + customCommands
48+ return [ Builder ( title: " New Chat " , customCommand: nil ) ] + customCommands
4949 }
5050
5151 public init ( service: ChatService = . init( ) ) {
Original file line number Diff line number Diff line change @@ -9,11 +9,21 @@ public protocol UserDefaultPreferenceKey {
99public struct PreferenceKey < T> : UserDefaultPreferenceKey {
1010 public let defaultValue : T
1111 public let key : String
12+
13+ public init ( defaultValue: T , key: String ) {
14+ self . defaultValue = defaultValue
15+ self . key = key
16+ }
1217}
1318
1419public struct FeatureFlag : UserDefaultPreferenceKey {
1520 public let defaultValue : Bool
1621 public let key : String
22+
23+ public init ( defaultValue: Bool , key: String ) {
24+ self . defaultValue = defaultValue
25+ self . key = key
26+ }
1727}
1828
1929public struct UserDefaultPreferenceKeys {
You can’t perform that action at this time.
0 commit comments