fetch api key

Former-commit-id: 65ab34c743747e0750e288a1df6bac9ceac3dcd1
pull/160/head
Kye 2 years ago
parent 5a47b9934b
commit 7e3d6609b5

@ -13,7 +13,7 @@ class OpenAI:
model=None,
params=None,
save_messages=True):
self.api_key = api_key or self._fetch_api_key()
self.api_key = api_key or self.fetch_api_key()
self.system = system or "You are a helpful assistant"
try:

Loading…
Cancel
Save