Tonic commited on
Commit
cd7479c
·
1 Parent(s): 117c21d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,11 +14,11 @@ def query_vectara(question):
14
  corpus_id = config('CORPUS_ID') # Read from .env file
15
  api_key = config('API_KEY') # Read from .env file
16
 
17
- query_url = "https://api.vectara.io:443/v1/query"
18
 
19
  headers = {
20
  "Content-Type": "application/json",
21
- "Authorization": f"Bearer {api_key}",
22
  "customer-id": customer_id,
23
  }
24
 
 
14
  corpus_id = config('CORPUS_ID') # Read from .env file
15
  api_key = config('API_KEY') # Read from .env file
16
 
17
+ query_url = "https://api.vectara.io:443/v1/query/v1/query"
18
 
19
  headers = {
20
  "Content-Type": "application/json",
21
+ "Authorization": f"{api_key}",
22
  "customer-id": customer_id,
23
  }
24