Browse Source

bugfix: Add failover functionality to setup

-Updated the fabric --setup to ask for an OPENAI_API_KEY if none is
found.
pull/163/head
David 1 year ago
parent
commit
cdd9cbe855
  1. 4
      installer/client/cli/utils.py

4
installer/client/cli/utils.py

@ -430,8 +430,8 @@ class Setup:
openaiapikey = os.environ["OPENAI_API_KEY"]
self.openaiapi_key = openaiapikey
except KeyError:
print("OPENAI_API_KEY not found in environment variables.")
sys.exit()
print("OPENAI_API_KEY not found in environment variables. ")
self.run()
self.fetch_available_models()
def fetch_available_models(self):

Loading…
Cancel
Save