@@ -97,7 +97,11 @@ def prepare_env():
97
97
98
98
if keep_updated .lower () != "n" :
99
99
# Add the user to the mailing list
100
- webbrowser .open ("https://forms.gle/UKQ9rumczFDvwVmg7" )
100
+ try :
101
+ webbrowser .open ("https://forms.gle/UKQ9rumczFDvwVmg7" )
102
+ except Exception :
103
+ print ("Failed to open browser. Please open the browser and navigate to the URL below." )
104
+ print ("https://forms.gle/UKQ9rumczFDvwVmg7" )
101
105
102
106
with open (config_path , "w" ) as f :
103
107
toml .dump (config , f )
@@ -172,7 +176,13 @@ def wait_for_server(llmstack_environment, timeout):
172
176
time .sleep (2 + (random .randint (0 , 1000 ) / 1000 ))
173
177
continue
174
178
175
- webbrowser .open (f'http://{ llmstack_environment ["LLMSTACK_HOST" ]} :{ llmstack_environment ["LLMSTACK_PORT" ]} ' )
179
+ try :
180
+ webbrowser .open (f'http://{ llmstack_environment ["LLMSTACK_HOST" ]} :{ llmstack_environment ["LLMSTACK_PORT" ]} ' )
181
+ except Exception :
182
+ print ("\n Failed to open browser. Please open the browser and navigate to the URL below." )
183
+ print (
184
+ f"LLMStack server is running at http://{ llmstack_environment ['LLMSTACK_HOST' ]} :{ llmstack_environment ['LLMSTACK_PORT' ]} "
185
+ )
176
186
177
187
178
188
def print_compose_logs (follow = True , stream = True ):
@@ -302,7 +312,7 @@ def signal_handler(sig, frame):
302
312
llmstack_environment ["TAG" ] = args .tag
303
313
304
314
# Load default store apps
305
- llmstack_environment ["DJANGO_MANAGEPY_LOADSTOREAPPS" ] = "on"
315
+ os . environ ["DJANGO_MANAGEPY_LOADSTOREAPPS" ] = "on"
306
316
307
317
start (llmstack_environment )
308
318
0 commit comments