File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ export default function openAIAssistantPage() {
3838 let currentController = null ;
3939 let aiTabInstance ;
4040
41- if ( ! settings . value . aiApiKey ) {
42- alert ( "Error" , "Please set your AI Assistant API Key in Settings before using the assistant." ) ;
43- return ;
44- }
45- if ( ! settings . value . aiModel ) {
46- alert ( "Error" , "Please set your AI Assistant model in Settings before using the assistant." ) ;
47- return ;
48- }
41+ if ( ! settings . value . aiApiKey ) {
42+ alert ( "Error" , "Please set your AI Assistant API Key in Settings before using the assistant." ) ;
43+ return ;
44+ }
45+ if ( ! settings . value . aiModel ) {
46+ alert ( "Error" , "Please set your AI Assistant model in Settings before using the assistant." ) ;
47+ return ;
48+ }
4949
5050 const agentCheckpointer = new CordovaSqliteSaver ( ) ;
5151 const model = new ChatGoogleGenerativeAI ( {
Original file line number Diff line number Diff line change @@ -72,24 +72,24 @@ export default function otherSettings() {
7272 select : [ appSettings . CONSOLE_LEGACY , appSettings . CONSOLE_ERUDA ] ,
7373 } ,
7474 {
75- key : "aiApiKey" ,
76- text : "AI Assistant API Key" ,
77- placeholder : "Enter your API key" ,
78- promptType : "text" ,
79- promptOptions : {
80- required : true
81- } ,
82- value : values . aiApiKey
75+ key : "aiApiKey" ,
76+ text : "AI Assistant API Key" ,
77+ placeholder : "Enter your API key" ,
78+ promptType : "text" ,
79+ promptOptions : {
80+ required : true
81+ } ,
82+ value : values . aiApiKey
8383 } ,
8484 {
85- key : "aiModel" ,
86- text : "AI Assistant Model" ,
87- placeholder : "Enter your model" ,
88- promptType : "text" ,
89- promptOptions : {
90- required : true
91- } ,
92- value : values . aiModel
85+ key : "aiModel" ,
86+ text : "AI Assistant Model" ,
87+ placeholder : "Enter your model" ,
88+ promptType : "text" ,
89+ promptOptions : {
90+ required : true
91+ } ,
92+ value : values . aiModel
9393 } ,
9494 {
9595 key : "keyboardMode" ,
@@ -256,12 +256,12 @@ export default function otherSettings() {
256256 }
257257
258258 case "aiApiKey" :
259- await appSettings . update ( { aiApiKey : value } ) ;
260- break ;
259+ await appSettings . update ( { aiApiKey : value } ) ;
260+ break ;
261261
262262 case "aiModel" :
263- await appSettings . update ( { aiModel : value } ) ;
264- break ;
263+ await appSettings . update ( { aiModel : value } ) ;
264+ break ;
265265
266266 case "rememberFiles" :
267267 if ( ! value ) {
You can’t perform that action at this time.
0 commit comments