Skip to content

Commit 0566de3

Browse files
authored
chore: fixes grammar on 404 (#1413)
**Description** This fixes the grammar in the English sentence in the response body to 404 cases. --------- Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent c4f26a8 commit 0566de3

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cmd/aigw/testdata/translate_basic.out.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ metadata:
182182
spec:
183183
directResponse:
184184
body:
185-
inline: No matching route found. It is likely that the model specified your
186-
request is not configured in the Gateway.
185+
inline: No matching route found. It is likely because the model specified in your request is not configured in the Gateway.
187186
type: null
188187
statusCode: 404
189188
---

internal/controller/ai_gateway_route.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func generateHTTPRouteFilters(aiGatewayRoute *aigv1a1.AIGatewayRoute) []*egv1a1.
146146
Body: &egv1a1.CustomResponseBody{
147147
Inline: ptr.To(
148148
// "Likely" since the matching rule can be arbitrary, not necessarily matching on the model name.
149-
`No matching route found. It is likely that the model specified your request is not configured in the Gateway.`,
149+
`No matching route found. It is likely because the model specified in your request is not configured in the Gateway.`,
150150
),
151151
},
152152
},

tests/e2e/testupstream_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func TestWithTestUpstream(t *testing.T) {
8383
name: "openai",
8484
modelName: "non-existent-model",
8585
expStatus: 404,
86-
expResponseBody: `No matching route found. It is likely that the model specified your request is not configured in the Gateway.`,
86+
expResponseBody: `No matching route found. It is likely because the model specified in your request is not configured in the Gateway.`,
8787
},
8888
{
8989
name: "openai-header-mutation",

0 commit comments

Comments
 (0)