ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
1 changed files with 145336 additions and 0 deletions
21
vendor/platform/agentgateway/model-list.yaml
vendored
Normal file
21
vendor/platform/agentgateway/model-list.yaml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
apiVersion: agentgateway.dev/v1alpha1
|
||||
kind: AgentgatewayPolicy
|
||||
metadata:
|
||||
name: tier-models
|
||||
namespace: agentgateway-system
|
||||
spec:
|
||||
targetRefs:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: HTTPRoute
|
||||
name: model-catalog
|
||||
traffic:
|
||||
transformation:
|
||||
response:
|
||||
body: >-
|
||||
toJson(json(response.body).merge({"data":
|
||||
json(response.body).data +
|
||||
json(response.body).data.filter(m, m.id.startsWith("vertex_ai/")).map(m,
|
||||
m.merge({"id": "vertex_ai_flex/" + m.id.stripPrefix("vertex_ai/")})) +
|
||||
json(response.body).data.filter(m, m.id.startsWith("vertex_ai/")).map(m,
|
||||
m.merge({"id": "vertex_ai_batch/" + m.id.stripPrefix("vertex_ai/")}))
|
||||
}))
|
||||
Loading…
Reference in a new issue