mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
test: update hf test to check if client closed
This commit is contained in:
parent
90f9aded9f
commit
aa7f416b7f
1 changed files with 9 additions and 8 deletions
|
@ -3969,6 +3969,7 @@ def test_completion_hf_prompt_array():
|
||||||
|
|
||||||
def test_text_completion_stream():
|
def test_text_completion_stream():
|
||||||
try:
|
try:
|
||||||
|
for _ in range(2): # check if closed client used
|
||||||
response = text_completion(
|
response = text_completion(
|
||||||
model="huggingface/mistralai/Mistral-7B-v0.1",
|
model="huggingface/mistralai/Mistral-7B-v0.1",
|
||||||
prompt="good morning",
|
prompt="good morning",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue