actually we want this

This commit is contained in:
Cyberes 2023-08-24 23:57:46 -06:00
parent 0b4da89de2
commit 26a0a13aa7
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ def generate():
else:
raise Exception
log_prompt(client_ip, token, request_json_body['prompt'], backend_response, elapsed_time, parameters, dict(request.headers), 0)
log_prompt(client_ip, token, request_json_body['prompt'], backend_response, elapsed_time, parameters, dict(request.headers), response if response else 0)
return jsonify({
'code': 500,
'error': 'failed to reach backend',