mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
Litellm merge pr (#7161)
* build: merge branch * test: fix openai naming * fix(main.py): fix openai renaming * style: ignore function length for config factory * fix(sagemaker/): fix routing logic * fix: fix imports * fix: fix override
This commit is contained in:
parent
cd9b92b402
commit
93000bd8d3
88 changed files with 3617 additions and 4421 deletions
|
@ -437,8 +437,8 @@ def test_token_counter():
|
|||
print(tokens)
|
||||
assert tokens > 0
|
||||
|
||||
tokens = token_counter(model="palm/chat-bison", messages=messages)
|
||||
print("palm/chat-bison")
|
||||
tokens = token_counter(model="gemini/chat-bison", messages=messages)
|
||||
print("gemini/chat-bison")
|
||||
print(tokens)
|
||||
assert tokens > 0
|
||||
|
||||
|
@ -465,7 +465,7 @@ def test_token_counter():
|
|||
("azure/gpt-4-1106-preview", True),
|
||||
("groq/gemma-7b-it", True),
|
||||
("anthropic.claude-instant-v1", False),
|
||||
("palm/chat-bison", False),
|
||||
("gemini/gemini-1.5-flash", True),
|
||||
],
|
||||
)
|
||||
def test_supports_function_calling(model, expected_bool):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue