mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
(test) test_token_counter_azure
This commit is contained in:
parent
037dcbbe10
commit
b1077ebc38
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
Reference in a new issue