Skip to content

Commit d26e4d5

Browse files
committed
more
Signed-off-by: bitliu <[email protected]>
1 parent a249ad6 commit d26e4d5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/semantic-router/pkg/api/server_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,17 @@ func TestOpenAIModelsEndpoint(t *testing.T) {
309309
Name: "primary",
310310
Address: "127.0.0.1", // Changed from localhost to IP address
311311
Port: 8000,
312-
Models: []string{"gpt-4o-mini", "llama-3.1-8b-instruct"},
313312
Weight: 1,
314313
},
315314
},
315+
ModelConfig: map[string]config.ModelParams{
316+
"gpt-4o-mini": {
317+
PreferredEndpoints: []string{"primary"},
318+
},
319+
"llama-3.1-8b-instruct": {
320+
PreferredEndpoints: []string{"primary"},
321+
},
322+
},
316323
}
317324

318325
apiServer := &ClassificationAPIServer{

0 commit comments

Comments
 (0)