From 695eaac54297a02f24a6db22aff430fbd9080dc1 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Thu, 23 Nov 2023 18:28:21 -0800 Subject: [PATCH] (fix) cost calculator for FT: gpt-3.5 --- litellm/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/utils.py b/litellm/utils.py index 355ba24bf5..c9089d6098 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -1587,12 +1587,12 @@ def token_counter(model="", text=None, messages: Optional[List] = None): return num_tokens -def cost_per_token(model="gpt-3.5-turbo", prompt_tokens=0, completion_tokens=0): +def cost_per_token(model="", prompt_tokens=0, completion_tokens=0): """ Calculates the cost per token for a given model, prompt tokens, and completion tokens. Parameters: - model (str): The name of the model to use. Default is "gpt-3.5-turbo". + model (str): The name of the model to use. Default is "" prompt_tokens (int): The number of tokens in the prompt. completion_tokens (int): The number of tokens in the completion. @@ -1637,7 +1637,7 @@ def cost_per_token(model="gpt-3.5-turbo", prompt_tokens=0, completion_tokens=0): def completion_cost( completion_response=None, - model="gpt-3.5-turbo", + model=None, prompt="", messages: List = [], completion="",