AI Gateway spend limits aren't discoverable: `cf cli search` misses the `gateways update --spend-limits-*` flags
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- cli
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 960
- Fork
- 62
- Merge medio
- 23h 46m
- PR unite (30g)
- 217
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cloudflare/cf
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
cloudflare/cf#344 ·
I maintainer di solito rispondono entro 1 giorno
-
upstream
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
cloudflare/cf#262 ·
I maintainer di solito rispondono entro 1 giorno
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` templateForse già presa @jamesopstad l’ha presa 16 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
cloudflare/cf#223 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
upstream
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
cloudflare/cf#179 ·
I maintainer di solito rispondono entro 1 giorno
-
cf ai run prints {} for models that return binary output (text-to-speech audio)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
cloudflare/cf#437 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di cloudflare/cf
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
area:plugins area:security area:skills bug has repro
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
anthropics/claude-code#105911 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
dev-five-git/devup-ui#879 ·
I maintainer di solito rispondono entro 11 giorni
-
openspec-apply-change skill: when blocked, may select a ready artifact unrelated to missingArtifactsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Fission-AI/OpenSpec#2165 ·
I maintainer di solito rispondono entro 1 giorno
-
🐞 bug 🧐 unconfirmed
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Tencent/tdesign-vue-next#7032 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno