Skip to content

Commit

Permalink
Merge branch 'main' into routecontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
daixiang0 authored Feb 6, 2025
2 parents 34ce49e + e01f50e commit 22cc48d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion examples/token_ratelimit/token_ratelimit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ spec:
value: gpt-4o-mini
backendRefs:
- name: envoy-ai-gateway-token-ratelimit-testupstream
weight: 100
# The following metadata keys are used to store the costs from the LLM request.
llmRequestCosts:
- metadataKey: llm_input_token
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/token_ratelimit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func Test_Examples_TokenRateLimit(t *testing.T) {

// Test the CEL token limit.
usedID = strconv.Itoa(baseID + 3)
// When the input number is 7, the CEL expression returns 100000000 which exceeds the limit.
// When the input number is 3, the CEL expression returns 100000000 which exceeds the limit.
makeRequest(usedID, 3, 0, 0, 200)
// Any request with the same user ID should be rejected.
makeRequest(usedID, 0, 0, 0, 429)
Expand Down

0 comments on commit 22cc48d

Please sign in to comment.