Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for acceptable routing strategies #352

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

varungup90
Copy link
Collaborator

@varungup90 varungup90 commented Nov 7, 2024

Validate routing strategy in inference request is correct: #333 #334

@@ -46,6 +47,7 @@ import (
var (
defaultRPM = 100
defaultTPMMultiplier = 1000
routingStrategies = []string{"random", "least-request", "throughput"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there source of truth or single constant we can use? I remember somewhere else have the definition

@Jeffwan
Copy link
Collaborator

Jeffwan commented Nov 7, 2024

The change looks good to me, just minor suggestion on the single constants

@Jeffwan
Copy link
Collaborator

Jeffwan commented Nov 7, 2024

Varun mentioned there's no constants to use at this moment. so we can merge it now and improve it later

@Jeffwan Jeffwan merged commit 106992f into main Nov 7, 2024
9 checks passed
@Jeffwan Jeffwan deleted the add-routing-strategy-check branch November 7, 2024 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants