fix(router): simplify bucket context limit check (#39259)
Signed-off-by: Ishan Dhanani <ishandhanani@gmail.com>
This commit is contained in:
@@ -164,9 +164,9 @@ impl BucketSelector {
|
|||||||
}) else {
|
}) else {
|
||||||
return Some(candidate);
|
return Some(candidate);
|
||||||
};
|
};
|
||||||
if !spec
|
if spec
|
||||||
.max_context_tokens
|
.max_context_tokens
|
||||||
.is_none_or(|max_context| request.input_tokens <= max_context)
|
.is_some_and(|max_context| request.input_tokens > max_context)
|
||||||
|| (config.ttft_slo_policy == SloBucketPolicy::SloFirst
|
|| (config.ttft_slo_policy == SloBucketPolicy::SloFirst
|
||||||
&& !ttft_eligible(spec, request.ttft_slo_ms))
|
&& !ttft_eligible(spec, request.ttft_slo_ms))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user