Skip to content

Commit 93dbce6

Browse files
committed
update
Signed-off-by: bitliu <[email protected]>
1 parent 6519a1e commit 93dbce6

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

e2e/profiles/ai-gateway/profile.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ func (p *Profile) GetTestCases() []string {
113113
"semantic-cache",
114114
"pii-detection",
115115
"jailbreak-detection",
116+
"chat-completions-progressive-stress",
116117
}
117118
}
118119

src/semantic-router/pkg/utils/pii/policy_test.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ func TestIsPIIEnabled_LoRAFallback(t *testing.T) {
115115
// TestCheckPolicy_LoRAFallback tests that CheckPolicy falls back to base model for LoRA adapters
116116
func TestCheckPolicy_LoRAFallback(t *testing.T) {
117117
tests := []struct {
118-
name string
119-
modelConfigs map[string]config.ModelParams
120-
model string
121-
detectedPII []string
118+
name string
119+
modelConfigs map[string]config.ModelParams
120+
model string
121+
detectedPII []string
122122
expectedAllowed bool
123123
expectedDenied []string
124-
description string
124+
description string
125125
}{
126126
{
127127
name: "LoRA adapter inherits base model's strict PII policy",
@@ -151,7 +151,6 @@ func TestCheckPolicy_LoRAFallback(t *testing.T) {
151151
}
152152

153153
allowed, deniedPII, err := checker.CheckPolicy(tt.model, tt.detectedPII)
154-
155154
if err != nil {
156155
t.Errorf("Unexpected error: %v", err)
157156
}
@@ -166,4 +165,3 @@ func TestCheckPolicy_LoRAFallback(t *testing.T) {
166165
})
167166
}
168167
}
169-

0 commit comments

Comments
 (0)