Update api/utils.py
Browse files- api/utils.py +2 -0
api/utils.py
CHANGED
@@ -93,6 +93,8 @@ async def process_streaming_response(request: ChatRequest):
|
|
93 |
|
94 |
headers_api_chat = get_headers_api_chat(referer_url)
|
95 |
validated_token = validate.getHid() # Get the validated token from validate.py
|
|
|
|
|
96 |
|
97 |
if request.model == 'o1-preview':
|
98 |
delay_seconds = random.randint(1, 60)
|
|
|
93 |
|
94 |
headers_api_chat = get_headers_api_chat(referer_url)
|
95 |
validated_token = validate.getHid() # Get the validated token from validate.py
|
96 |
+
logger.info(f"Retrieved validated token: {validated_token}")
|
97 |
+
|
98 |
|
99 |
if request.model == 'o1-preview':
|
100 |
delay_seconds = random.randint(1, 60)
|