(fix) test get_model_cost_map

This commit is contained in:
ishaan-jaff 2023-11-04 09:12:22 -07:00
parent 5f26da58a1
commit 38ff9f2b6f

View file

@ -9,11 +9,15 @@ from litellm import get_max_tokens, model_cost, open_ai_chat_completion_models
print(get_max_tokens("gpt-3.5-turbo")) print(get_max_tokens("gpt-3.5-turbo"))
print(model_cost) def test_get_gpt3_tokens():
print(open_ai_chat_completion_models) max_tokens = get_max_tokens("gpt-3.5-turbo")
# print("\n") results = max_tokens['max_tokens']
# print(model_cost) print(results)
# print("\n") # test_get_gpt3_tokens()
# # 🦄🦄🦄🦄🦄🦄🦄🦄 def test_get_palm_tokens():
# print(get_max_tokens("palm/chat-bison")) # # 🦄🦄🦄🦄🦄🦄🦄🦄
max_tokens = get_max_tokens("palm/chat-bison")
results = max_tokens['max_tokens']
print(results)
# test_get_palm_tokens()