(test) supports_function_calling

This commit is contained in:
ishaan-jaff 2024-02-28 17:51:34 -08:00
parent da2287fe79
commit 01f1dfdba3

View file

@ -326,9 +326,7 @@ def test_supports_function_calling():
litellm.supports_function_calling(model="azure/gpt-4-1106-preview") == True litellm.supports_function_calling(model="azure/gpt-4-1106-preview") == True
) )
assert ( assert (
litellm.supports_function_calling( litellm.supports_function_calling(model="anthropic.claude-instant-v1")
model="bedrock/anthropic.claude-instant-v1"
)
== False == False
) )
assert litellm.supports_function_calling(model="palm/chat-bison") == False assert litellm.supports_function_calling(model="palm/chat-bison") == False
@ -338,6 +336,5 @@ def test_supports_function_calling():
== False == False
) )
assert litellm.supports_function_calling(model="claude-2") == False assert litellm.supports_function_calling(model="claude-2") == False
except Exception as e: except Exception as e:
pytest.fail(f"Error occurred: {e}") pytest.fail(f"Error occurred: {e}")