diff --git a/endpoints/OAI/utils/chat_completion.py b/endpoints/OAI/utils/chat_completion.py index df93447..11872b7 100644 --- a/endpoints/OAI/utils/chat_completion.py +++ b/endpoints/OAI/utils/chat_completion.py @@ -67,7 +67,7 @@ def _create_response(generation: dict, model_name: Optional[str]): ) prompt_tokens = unwrap(generation.get("prompt_tokens"), 0) - completion_tokens = unwrap(generation.get("completion_tokens"), 0) + completion_tokens = unwrap(generation.get("generated_tokens"), 0) response = ChatCompletionResponse( choices=[choice],