File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 65
65
restart_app ,
66
66
show_message_box_after_change_to_restart ,
67
67
set_auto_start_windows ,
68
- init_llama ,
68
+ init_llama , set_api_key ,
69
69
)
70
70
from pyqt_openai .widgets .navWidget import NavBar
71
71
@@ -102,7 +102,7 @@ def __initUi(self):
102
102
self .__setTrayMenu ()
103
103
self .__setToolBar ()
104
104
105
- init_llama ()
105
+ self . __loadApiKeys ()
106
106
107
107
self .setCentralWidget (self .__mainWidget )
108
108
self .resize (* APP_INITIAL_WINDOW_SIZE )
@@ -112,6 +112,11 @@ def __initUi(self):
112
112
self .__customizeParamsContainer
113
113
)
114
114
115
+ def __loadApiKeys (self ):
116
+ set_api_key ('OPENAI_API_KEY' , CONFIG_MANAGER .get_general_property ('OPENAI_API_KEY' ))
117
+ set_api_key ('REPLICATE_API_KEY' , CONFIG_MANAGER .get_general_property ('REPLICATE_API_KEY' ))
118
+ init_llama ()
119
+
115
120
def __setActions (self ):
116
121
self .__langAction = QAction ()
117
122
You can’t perform that action at this time.
0 commit comments