"src/vscode:/vscode.git/clone" did not exist on "d1d0b8afce2fb07134a243aa42136424a3a632a2"
Unverified Commit 3a391812 authored by Lzhang-hub's avatar Lzhang-hub Committed by GitHub
Browse files

fix bench serving bug (#4135)

parent 800bf018
......@@ -220,7 +220,7 @@ async def async_request_openai_completions(
most_recent_timestamp = timestamp
generated_text += data["choices"][0]["text"]
output_len = data.get("usage", {}).get(
output_len = (data.get("usage") or {}).get(
"completion_tokens", output_len
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment