AI Gateway spend limits aren't discoverable: `cf cli search` misses the `gateways update --spend-limits-*` flags
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- cli
Línea de trabajo
Start by reading the CLI search implementation and the AI Gateway command definitions, especially gateways update and its --spend-limits-* flags; the issue names no source files or tests. Compare how R2 exposes focused subcommands and how CLI help describes structured rule options. Done means search finds spend-limit controls and users can find clear rule documentation; the issue proposes several substantial alternatives without choosing one.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
AI Gateway spend limits can be set from the CLI, but only as flags on cf ai-gateway gateways update (--spend-limits-enabled, --spend-limits-rules). cf cli search does not surface them, so it is easy to conclude the CLI can't manage spend limits at all.
Steps to reproduce
cf cli search "set spend limit rules on an AI gateway"
cf cli search "AI gateway spend limits"
cf cli search "budget for AI gateway"
The results list cf ai-gateway gateways create/get/update/delete and unrelated Zero Trust gateway rules, with summaries like "Update a gateway". Nothing mentions spend limits. cf ai-gateway --help has no spend-limit group either. The only way to find the feature is to read cf schema ai-gateway gateways update and spot spend-limits-rules.
Why it matters
- Spend limits are a cost-safety feature; people looking for them are trying to cap spend and may give up or switch to the dashboard.
gateways updateis aPUT, so setting spend limits that way means resending every other gateway setting. Leaving fields out risks resetting them (for example authentication). A focused command avoids that.- The rule format (
limitType,limit,window,technique, and how to scope by model, provider or metadata) is not described in the CLI help;--spend-limits-rulesis documented only as "The spend_limits.rules field".
Suggested improvements
- Make
cf cli searchindex flag names and their descriptions (or add keywords), so "spend limit" findsgateways update --spend-limits-*. - Add dedicated commands, e.g.
cf ai-gateway spend-limits get|set|add-rule|remove-rule <gateway>, that change onlyspend_limits(a PATCH or read-modify-write), likecf r2 buckets locks/lifecycledo for R2. - Document the rule object in
--help(fields, units forwindow,fixedvssliding, and the dimension format for model / provider / metadata scoping) with an example.
Environment
- cf CLI 1.0.0-beta.23
- Linux
- Lenguaje dominante
- TypeScript
- Estrellas
- 960
- Forks
- 62
- Merge medio
- 23 h 46 min
- PR fusionados (30 d)
- 217
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cloudflare/cf
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
cloudflare/cf#344 ·
Los mantenedores suelen responder en 1 día
-
upstream
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cloudflare/cf#262 ·
Los mantenedores suelen responder en 1 día
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` templatePosiblemente ocupada @jamesopstad la tomó hace 16 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cloudflare/cf#223 · 2 asignados ·
Los mantenedores suelen responder en 1 día
-
upstream
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
cloudflare/cf#179 ·
Los mantenedores suelen responder en 1 día
-
cf ai run prints {} for models that return binary output (text-to-speech audio)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
cloudflare/cf#437 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de cloudflare/cf
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:web p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Lets-Parley/Parley#912 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wealthfolio/wealthfolio#2376 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
be-BOP-io-SA/be-BOP#2817 ·
Los mantenedores suelen responder en 5 días
-
documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 84/100
sno-ai/sno-station#149 · 1 comentario ·
Los mantenedores suelen responder en 1 día