Skip to content

Commit 8e85c03

Browse files
committed
feat: add v1/embeddings in created httpRoute
Signed-off-by: Guillaume Calmettes <[email protected]>
1 parent cbbbf37 commit 8e85c03

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/controller/modelrouter/modelrouter_controller.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,15 @@ func (m *ModelRouter) createHTTPRoute(namespace string, labels map[string]string
227227
modelHeaderMatch,
228228
},
229229
},
230+
{
231+
Path: &gatewayv1.HTTPPathMatch{
232+
Type: ptr.To(gatewayv1.PathMatchPathPrefix),
233+
Value: ptr.To("/v1/embeddings"),
234+
},
235+
Headers: []gatewayv1.HTTPHeaderMatch{
236+
modelHeaderMatch,
237+
},
238+
},
230239
},
231240
BackendRefs: []gatewayv1.HTTPBackendRef{
232241
{

0 commit comments

Comments
 (0)