Skip to content

Commit

Permalink
fix ruff lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mspronesti committed Oct 4, 2023
1 parent ebb91e3 commit 065ba14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandasai/helpers/openai_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ def __call__(self, response: OpenAIObject) -> None:

model_name = response.model
if model_name in MODEL_COST_PER_1K_TOKENS:
prompt_cost = get_openai_token_cost_for_model(model_name, usage.prompt_tokens)
prompt_cost = get_openai_token_cost_for_model(
model_name, usage.prompt_tokens
)
completion_cost = get_openai_token_cost_for_model(
model_name, usage.completion_tokens, is_completion=True
)
Expand Down

0 comments on commit 065ba14

Please sign in to comment.