ParthSadaria commited on
Commit
31eab42
·
verified ·
1 Parent(s): df4f58c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -10,6 +10,7 @@ import re
10
  import cloudscraper
11
  import json
12
  from typing import Optional
 
13
 
14
  load_dotenv()
15
 
@@ -162,6 +163,9 @@ async def get_completion(payload: Payload):
162
 
163
  # Select the appropriate endpoint
164
  endpoint = secret_api_endpoint_2 if model_to_use in alternate_models else secret_api_endpoint
 
 
 
165
  print(payload_dict)
166
 
167
  async def stream_generator(payload_dict):
 
10
  import cloudscraper
11
  import json
12
  from typing import Optional
13
+ import datetime
14
 
15
  load_dotenv()
16
 
 
163
 
164
  # Select the appropriate endpoint
165
  endpoint = secret_api_endpoint_2 if model_to_use in alternate_models else secret_api_endpoint
166
+ current_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
167
+ aaip = request.client.host
168
+ print(f"Time: {current_time}, {aaip}")
169
  print(payload_dict)
170
 
171
  async def stream_generator(payload_dict):