superdup95 commited on
Commit
2e4d2e9
1 Parent(s): c1a3d4c

Update api_usage.py

Browse files
Files changed (1) hide show
  1. api_usage.py +2 -2
api_usage.py CHANGED
@@ -4,6 +4,7 @@ from datetime import datetime
4
  from dateutil.relativedelta import relativedelta
5
  import openai
6
 
 
7
  GPT_TYPES = ["gpt-3.5-turbo", "gpt-4", "gpt-4-32k"]
8
  rate_limit_per_model = {
9
  "gpt-3.5-turbo": 3500,
@@ -17,8 +18,7 @@ def get_headers(key):
17
  headers = {'Authorization': f'Bearer {key}'}
18
  return headers
19
 
20
- def get_subscription(key):
21
- queryUrl = 'https://api.openai.com/v1/chat/completions'
22
  headers = get_headers(key)
23
  #results = r.json()
24
  gpt4_avai = check_gpt4_availability()
 
4
  from dateutil.relativedelta import relativedelta
5
  import openai
6
 
7
+ queryUrl = 'https://api.openai.com/v1/chat/completions'
8
  GPT_TYPES = ["gpt-3.5-turbo", "gpt-4", "gpt-4-32k"]
9
  rate_limit_per_model = {
10
  "gpt-3.5-turbo": 3500,
 
18
  headers = {'Authorization': f'Bearer {key}'}
19
  return headers
20
 
21
+ def get_subscription(key):
 
22
  headers = get_headers(key)
23
  #results = r.json()
24
  gpt4_avai = check_gpt4_availability()