hunkim commited on
Commit
7c844be
·
1 Parent(s): 01d3adf

Update es_gpt.py

Browse files
Files changed (1) hide show
  1. es_gpt.py +1 -6
es_gpt.py CHANGED
@@ -4,15 +4,10 @@ import json
4
  import requests
5
 
6
  ES_URL = os.environ["ES_URL"]
7
- ES_USER = os.environ["ES_USER"]
8
- ES_PASS = os.environ["ES_PASS"]
9
- ES_CA_CERT = os.environ["ES_CA_CERT"]
10
-
11
 
12
  class ESGPT:
13
  def __init__(self, index_name):
14
- self.es = Elasticsearch(ES_URL, http_auth=(ES_USER, ES_PASS),
15
- ca_certs=ES_CA_CERT, verify_certs=True)
16
  self.index_name = index_name
17
  self.model_engine = os.environ["OPENAI_GPT_ENGINE"]
18
  self.api_key = os.environ["OPENAI_API_KEY"]
 
4
  import requests
5
 
6
  ES_URL = os.environ["ES_URL"]
 
 
 
 
7
 
8
  class ESGPT:
9
  def __init__(self, index_name):
10
+ self.es = Elasticsearch(ES_URL)
 
11
  self.index_name = index_name
12
  self.model_engine = os.environ["OPENAI_GPT_ENGINE"]
13
  self.api_key = os.environ["OPENAI_API_KEY"]