Skip to content

Commit 1162445

Browse files
committed
update
Signed-off-by: bitliu <[email protected]>
1 parent 8c457dd commit 1162445

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

deploy/kubernetes/ai-gateway/semantic-router-values/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ config:
138138
score: 0.7
139139
use_reasoning: true
140140

141-
default_model: base-model
141+
default_model: general-expert
142142

143143
bert_model:
144144
model_id: models/all-MiniLM-L12-v2

deploy/kubernetes/ai-gateway/semantic-router/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ categories:
136136
score: 0.7
137137
use_reasoning: true
138138

139-
default_model: base-model
139+
default_model: general-expert
140140

141141
bert_model:
142142
model_id: models/all-MiniLM-L12-v2

e2e/profiles/ai-gateway/profile.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,12 @@ func (p *Profile) deployEnvoyAIGateway(ctx context.Context, deployer *helm.Deplo
206206

207207
func (p *Profile) deployGatewayResources(ctx context.Context, opts *framework.SetupOptions) error {
208208
// Apply base model
209-
if err := p.kubectlApply(ctx, opts.KubeConfig, "https://raw.githubusercontent.com/vllm-project/semantic-router/refs/heads/main/deploy/kubernetes/ai-gateway/aigw-resources/base-model.yaml"); err != nil {
209+
if err := p.kubectlApply(ctx, opts.KubeConfig, "deploy/kubernetes/ai-gateway/aigw-resources/base-model.yaml"); err != nil {
210210
return fmt.Errorf("failed to apply base model: %w", err)
211211
}
212212

213213
// Apply gateway API resources
214-
if err := p.kubectlApply(ctx, opts.KubeConfig, "https://raw.githubusercontent.com/vllm-project/semantic-router/refs/heads/main/deploy/kubernetes/ai-gateway/aigw-resources/gwapi-resources.yaml"); err != nil {
214+
if err := p.kubectlApply(ctx, opts.KubeConfig, "deploy/kubernetes/ai-gateway/aigw-resources/gwapi-resources.yaml"); err != nil {
215215
return fmt.Errorf("failed to apply gateway API resources: %w", err)
216216
}
217217

@@ -299,8 +299,8 @@ func (p *Profile) verifyEnvironment(ctx context.Context, opts *framework.SetupOp
299299

300300
func (p *Profile) cleanupGatewayResources(ctx context.Context, opts *framework.TeardownOptions) error {
301301
// Delete in reverse order
302-
p.kubectlDelete(ctx, opts.KubeConfig, "https://raw.githubusercontent.com/vllm-project/semantic-router/refs/heads/main/deploy/kubernetes/ai-gateway/aigw-resources/gwapi-resources.yaml")
303-
p.kubectlDelete(ctx, opts.KubeConfig, "https://raw.githubusercontent.com/vllm-project/semantic-router/refs/heads/main/deploy/kubernetes/ai-gateway/aigw-resources/base-model.yaml")
302+
p.kubectlDelete(ctx, opts.KubeConfig, "deploy/kubernetes/ai-gateway/aigw-resources/gwapi-resources.yaml")
303+
p.kubectlDelete(ctx, opts.KubeConfig, "deploy/kubernetes/ai-gateway/aigw-resources/base-model.yaml")
304304
return nil
305305
}
306306

e2e/testcases/domain_classify.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ func testSingleClassification(ctx context.Context, question, expectedCategory, e
125125
"messages": []map[string]string{
126126
{"role": "user", "content": question},
127127
},
128-
"max_tokens": 100,
129-
"stream": false,
130128
}
131129

132130
jsonData, err := json.Marshal(requestBody)

e2e/testcases/jailbreak_detection.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ func testSingleJailbreakDetection(ctx context.Context, testCase JailbreakTestCas
136136
"messages": []map[string]string{
137137
{"role": "user", "content": testCase.Question},
138138
},
139-
"max_tokens": 100,
140-
"stream": false,
141139
}
142140

143141
jsonData, err := json.Marshal(requestBody)

e2e/testcases/pii_detection.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ func testSinglePIIDetection(ctx context.Context, testCase PIITestCase, localPort
134134
"messages": []map[string]string{
135135
{"role": "user", "content": testCase.Question},
136136
},
137-
"max_tokens": 100,
138-
"stream": false,
139137
}
140138

141139
jsonData, err := json.Marshal(requestBody)

0 commit comments

Comments
 (0)