หน้านี้แปลด้วยเครื่อง อ่านต้นฉบับภาษาอังกฤษ

FeatureRecipe

period-budget-higress

Realizes core/period-budget on the gateway core/gateway/higress; a Release binds it in its Manifest. It emits no file: the gateway's chart Recipe, higress-chart, writes Higress's ai-token-ratelimit plugin onto the model routes, counting in the Redis-protocol store on the cache socket. The gateway adds the prompt and completion tokens each reply reports once the reply completes, over a fixed window of period that opens when the first reply in it is counted, and answers model requests with HTTP 429 while the count exceeds limit, until the window ends; the request crossing the limit is served. Scope gateway keeps one count for all it serves, scope model one for each alias. A reply reporting no usage counts nothing, and a streamed request turning the usage report off is refused with HTTP 403, as are a request with a compressed body or an upgrade and one whose content type contains octet-stream or grpc, or neither contains application/json nor begins with multipart/form-data; a client crafting a body the gateway's validation cannot decode gets past them. Without masking, a body over 32 KiB may be refused with HTTP 413, depending on when the store answers. While the store cannot be reached, model requests are served and not counted. So it honours unit total_tokens, scope gateway or model, and a period of one second, minute, hour or day, however spelt. It refuses usd, prompt_tokens, completion_tokens, scope caller, since the gateway verifies no caller, any other period and a limit that is not a whole number by name, and halts on a second such attachment, with nothing wired to the models or cache socket, and on any component other than core/gateway/higress.

ที่มา

ทางการลงลายเซ็นด้วยตัวตนที่แค็ตตาล็อกนี้รู้จักว่าเป็นผู้เผยแพร่ทางการ
ไดเจสต์ของเนื้อหา
sha256:1cab4a366fa7b9a1e973022a2c4a626e90e10d37ac8f589a457f56a52ac68a3c
เผยแพร่
2026-11-10T10:15:51Z
ตัวตนผู้ลงลายเซ็น
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

ลายเซ็น

  • ทางการapplication/vnd.dev.sigstore.bundle.v0.3+json

    https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

    sha256:f0fa44b82f51d878839f40b94817b2b970ca42ead267c92d59a29ed18dc4edb5

เอกสารอ้างอิงในเวอร์ชันนี้

oci://hub.aggrega.ai/featurerecipe/helm/period-budget-higress:1.0.0
เป้าหมาย
—
อิมพลีเมนต์
core/period-budget:1.0.0

Provides

เทมเพลตตัวชี้ที่กำหนดแน่นอนซึ่ง Recipe นี้เชื่อมโยงให้ผู้บริโภค

ไม่มีเทมเพลต provides ที่ประกาศ

Workload

ไม่มีเทมเพลตเวิร์กโหลดที่ประกาศ

Locals

ไม่มี locals ที่ประกาศ

การแมป values

ไม่มีการแมป values ที่ประกาศ

ความสัมพันธ์

เส้นเชื่อมที่ระบุชนิดไปยังและมาจากเอนทิตีที่เผยแพร่อื่น การอ้างอิงที่ไม่มีเป้าหมายที่เผยแพร่จะเรนเดอร์เป็นเส้นเชื่อมที่ขาดแทนที่จะเป็นลิงก์

Uses

ใช้โดย

ไม่มีสิ่งใดในแค็ตตาล็อกพึ่งพาเอนทิตีนี้

เอกสารอ้างอิงแนวคิดของ FeatureRecipe

แค็ตตาล็อก Aggrega — ดัชนีเปิดของส่วนประกอบ ฟีเจอร์ Recipes และปลั๊กอินที่เรนเดอร์สิ่งเหล่านั้น

สร้างด้วยระบบการออกแบบร่วมของ Aggrega

ความเป็นส่วนตัว