Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cmd/aigw/testdata/translate_basic.out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ metadata:
spec:
directResponse:
body:
inline: No matching route found. It is likely that the model specified your
request is not configured in the Gateway.
inline: No matching route found. It is likely because the model specified in your request is not configured in the Gateway.
type: null
statusCode: 404
---
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/ai_gateway_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func generateHTTPRouteFilters(aiGatewayRoute *aigv1a1.AIGatewayRoute) []*egv1a1.
Body: &egv1a1.CustomResponseBody{
Inline: ptr.To(
// "Likely" since the matching rule can be arbitrary, not necessarily matching on the model name.
`No matching route found. It is likely that the model specified your request is not configured in the Gateway.`,
`No matching route found. It is likely because the model specified in your request is not configured in the Gateway.`,
),
},
},
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/testupstream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func TestWithTestUpstream(t *testing.T) {
name: "openai",
modelName: "non-existent-model",
expStatus: 404,
expResponseBody: `No matching route found. It is likely that the model specified your request is not configured in the Gateway.`,
expResponseBody: `No matching route found. It is likely because the model specified in your request is not configured in the Gateway.`,
},
{
name: "openai-header-mutation",
Expand Down
Loading