mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
(test) test_token_counter_azure
This commit is contained in:
parent
806551ff99
commit
95a98f5463
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ def test_token_counter_azure():
|
|||
# test that prompt_tokens counted == prompt_tokens from Azure API
|
||||
try:
|
||||
messages = [{"role": "user", "content": "hi how are you what time is it"}]
|
||||
tokens_counted = token_counter(model="gpt-3.5-turbo", messages=messages)
|
||||
tokens_counted = token_counter(model="gpt-35-turbo", messages=messages)
|
||||
print("Tokens Counted=", tokens_counted)
|
||||
|
||||
response = litellm.completion(model="azure/chatgpt-v-2", messages=messages)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue