forked from phoenix/litellm-mirror
(feat) add azure openai cost tracking for prompt caching (#6077)
* add azure o1 models to model cost map * add azure o1 cost tracking * fix azure cost calc * add get llm provider test
This commit is contained in:
parent
7267852511
commit
ab0b536143
4 changed files with 160 additions and 0 deletions
|
@ -115,3 +115,12 @@ def test_get_llm_provider_cohere_chat_test2():
|
|||
print("api_base=", api_base)
|
||||
assert custom_llm_provider == "cohere_chat"
|
||||
assert model == "command-r-plus"
|
||||
|
||||
|
||||
def test_get_llm_provider_azure_o1():
|
||||
|
||||
model, custom_llm_provider, dynamic_api_key, api_base = litellm.get_llm_provider(
|
||||
model="azure/o1-mini",
|
||||
)
|
||||
assert custom_llm_provider == "azure"
|
||||
assert model == "o1-mini"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue