Update app.py
Browse files
app.py
CHANGED
@@ -380,7 +380,7 @@ def handsome_chat_completions():
|
|
380 |
try:
|
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"]:
|
|
|
380 |
try:
|
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"]:
|