yym68686 commited on
Commit
765297f
·
1 Parent(s): ae1a71e

🐛 Bug: Fix the bug where using wildcard configuration for weights fails to find available channels.

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -1040,7 +1040,7 @@ async def get_right_order_providers(request_model, config, api_index, scheduling
1040
  intersection = None
1041
 
1042
  if intersection:
1043
- filtered_weights = {k.split("/")[0]: v for k, v in weights.items() if k in intersection}
1044
  # print("filtered_weights", filtered_weights)
1045
 
1046
  if scheduling_algorithm == "weighted_round_robin":
 
1040
  intersection = None
1041
 
1042
  if intersection:
1043
+ filtered_weights = {k.split("/")[0]: v for k, v in weights.items() if k.split("/")[0] + "/" + request_model in intersection}
1044
  # print("filtered_weights", filtered_weights)
1045
 
1046
  if scheduling_algorithm == "weighted_round_robin":