From 721d34bda2eee0f93c40b0c983437c079421ea9f Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Wed, 13 Sep 2023 11:20:12 -0700 Subject: [PATCH] fix benchmark.py tutorial --- cookbook/benchmark/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/benchmark/benchmark.py b/cookbook/benchmark/benchmark.py index 9164e5d3ba..267e5c4e1c 100644 --- a/cookbook/benchmark/benchmark.py +++ b/cookbook/benchmark/benchmark.py @@ -51,7 +51,7 @@ def main(system_prompt): end = time.time() total_time = end - start_time - cost = completion_cost(response) + cost = completion_cost(completion_response=response) raw_response = response['choices'][0]['message']['content'] data.append({