File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ if [ "$TLS_ENABLED" = "true" ] || [ "$TLS_ENABLED" = "1" ]; then
2828 fi
2929 echo " TLS_CERTIFICATE: $TLS_CERTIFICATE "
3030 echo " TLS_KEY: $TLS_KEY "
31- gunicorn --workers=1 --threads=20 -- timeout 60 --bind 0.0.0.0:${SERVER_PORT} --certfile $TLS_CERTIFICATE --keyfile $TLS_KEY --log-level=debug chatbot_api:app
31+ gunicorn --timeout 600 --bind 0.0.0.0:${SERVER_PORT} --certfile $TLS_CERTIFICATE --keyfile $TLS_KEY --log-level=debug chatbot_api:app
3232else:
33- gunicorn --bind 0.0.0.0:${SERVER_PORT} chatbot_api:app
33+ gunicorn --timeout 600 -- bind 0.0.0.0:${SERVER_PORT} chatbot_api:app
3434fi
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def init_bot():
9595 app .logger .debug ("Initializing bot" )
9696 try :
9797 with loaded_model_lock :
98- if os .environ .get ("CHATBOT_OPENAI_API_KEY" ) is not None :
98+ if os .environ .get ("CHATBOT_OPENAI_API_KEY" ):
9999 app .logger .info ("Using OpenAI API Key from environment" )
100100 os .environ ["OPENAI_API_KEY" ] = os .environ .get ("CHATBOT_OPENAI_API_KEY" )
101101 elif "openai_api_key" not in request .json :
You can’t perform that action at this time.
0 commit comments