fix failing tests
This commit is contained in:
parent
d2324c9955
commit
f6279353ac
@ -41,3 +41,4 @@ def test_completion_gpt():
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
|
||||
litellm.cache = False # rest to False for the next test
|
||||
@ -722,6 +722,8 @@ def message_to_user_question(messages):
|
||||
|
||||
def add_cache(messages, model_response):
|
||||
global cache_collection
|
||||
if cache_collection == None:
|
||||
make_collection()
|
||||
user_question = message_to_user_question(messages)
|
||||
cache_collection.add(
|
||||
documents=[user_question],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user