litellm-mirror/litellm/tests/test_completion_cost.py
2023-09-06 16:08:44 -07:00

22 lines
No EOL
485 B
Python

# import sys, os
# import traceback
# from dotenv import load_dotenv
# load_dotenv()
# import os
# sys.path.insert(
# 0, os.path.abspath("../..")
# ) # Adds the parent directory to the system path
# import pytest
# import litellm
# from litellm import embedding, completion, text_completion
# from litellm.utils import completion_cost
# print(completion_cost(
# model="togethercomputer/llama-2-70b-chat",
# prompt="gm",
# completion="hello"
# ))