mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(test) router with fallback deployments
This commit is contained in:
parent
629415c91a
commit
db146bc40a
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ load_dotenv()
|
||||||
|
|
||||||
def test_multiple_deployments():
|
def test_multiple_deployments():
|
||||||
import concurrent, time
|
import concurrent, time
|
||||||
# litellm.set_verbose=True
|
litellm.set_verbose=True
|
||||||
futures = {}
|
futures = {}
|
||||||
model_list = [{ # list of model deployments
|
model_list = [{ # list of model deployments
|
||||||
"model_name": "gpt-3.5-turbo", # openai model name
|
"model_name": "gpt-3.5-turbo", # openai model name
|
||||||
|
@ -82,7 +82,7 @@ Who among the mentioned figures from Ancient Greece contributed to the domain of
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
for _ in range(10):
|
for _ in range(2):
|
||||||
print(f"starting!!!")
|
print(f"starting!!!")
|
||||||
response = router.completion(**kwargs)
|
response = router.completion(**kwargs)
|
||||||
results.append(response)
|
results.append(response)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue