fix exception

This commit is contained in:
Cyberes 2023-08-24 23:57:25 -06:00
parent 25e3255c9b
commit 0b4da89de2
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), response.status_code)
log_prompt(client_ip, token, request_json_body['prompt'], backend_response, elapsed_time, parameters, dict(request.headers), 0)
return jsonify({
'code': 500,
'error': 'failed to reach backend',