This commit is contained in:
Cyberes 2023-10-05 18:50:10 -06:00
parent 817c454c89
commit 46d44f95ac
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ def openai_chat_completions():
else:
handler.prompt = transform_messages_to_prompt(handler.request.json['messages'])
generated_text = ''
response_status_code = 0
start_time = time.time()
@ -154,3 +155,4 @@ def openai_chat_completions():
# The worker incremented it, we'll decrement it.
decrement_ip_count(handler.client_ip, 'processing_ips')
decr_active_workers(handler.selected_model, handler.backend_url)
print(len(generated_text))