Update app.py
Browse files
app.py
CHANGED
@@ -381,10 +381,10 @@ def handsome_chat_completions():
|
|
381 |
response_json = json.loads(line)
|
382 |
|
383 |
if "usage" in response_json:
|
384 |
-
if "completion_tokens" in response_json["usage"]:
|
385 |
-
|
386 |
-
if "prompt_tokens" in response_json["usage"]:
|
387 |
-
|
388 |
|
389 |
|
390 |
if "choices" in response_json:
|
|
|
381 |
response_json = json.loads(line)
|
382 |
|
383 |
if "usage" in response_json:
|
384 |
+
# if "completion_tokens" in response_json["usage"]:
|
385 |
+
# completion_tokens += response_json["usage"]["completion_tokens"]
|
386 |
+
# if "prompt_tokens" in response_json["usage"]:
|
387 |
+
# prompt_tokens += response_json["usage"]["prompt_tokens"]
|
388 |
|
389 |
|
390 |
if "choices" in response_json:
|