fetch api key

Former-commit-id: 9945bca764
pull/47/head
Kye 1 year ago
parent bd223e723d
commit 1f4a01b6c9

@ -13,7 +13,7 @@ class OpenAI:
model=None, model=None,
params=None, params=None,
save_messages=True): 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" self.system = system or "You are a helpful assistant"
try: try:

Loading…
Cancel
Save