Skip to content

v1.12.0 — Gemini generation, Gemini Decision routing, and Fun-ASR

Choose a tag to compare

@github-actions github-actions released this 26 Nov 06:08
· 3 commits to main since this release
8f78467

🚀 Get started

New to AISIX? Get the gateway running and route your first LLM request in minutes:

📦 Download

Pull the container image from the GitHub Container Registry:

docker pull ghcr.io/api7/aisix:1.12.0

The rolling latest tag and the docker.io/api7/aisix mirror for private/offline deployments are listed on the package page.


Highlights

  • Gemini generation. Gemini and Antigravity clients can use AISIX model aliases with generateContent and streamGenerateContent?alt=sse. In resources.yaml, set apis.gemini on a provider key to enable native Gemini requests. Set apis.gemini.base to a versioned Gemini API root for a custom endpoint. The gateway can also translate requests to compatible Chat Completions upstreams. #1466
  • Gemini Decision for semantic routing. Set classifier.type to gemini_decision in the semantic resource. Use classifier.model_id to reference a non-wildcard gemini-decision-1 direct model with a Google provider key. Configure 2–254 named routes with descriptions. #1470
  • DashScope Fun-ASR over WebSocket. Connect to /api-ws/v1/inference with a gateway API key and run sequential transcription tasks on one connection using direct Alibaba models. The gateway records usage for each task from the audio duration reported by DashScope. #1467
  • Local budget calendars. Set budget_policy.timezone to an IANA timezone in resources.yaml to reset daily, weekly, and monthly budgets on the local calendar. The default is UTC. On exhausted budget marks, period_start is inclusive and period_end is exclusive. With only period_start set, the gateway matches it against the start of the current period in the configured timezone. Set reason.message_prefix to include the next reset time in the budget denial message. #1468

Usage and observability

  • Token counts. The gateway preserves explicitly reported zero counts and estimates missing counts. The estimates also reach client responses on supported paths, including native Responses streams and buffered Messages responses. Allow total_tokens to be absent in usage events that contain estimates. #1463
  • Cached usage. Exact and semantic Redis cache hits preserve reported counts, usage details, and modality counts. Redis and in-memory cache hits preserve the provider's prompt-cache write breakdown by cache lifetime. #1465
  • Client classification. Usage events, observability exports, and by-client token metrics use the same client type. Rules in observability.metrics.client_type_rules take precedence over built-in rules. #1469

Stability

  • Updated URL parsing to prevent a gateway crash during MCP user OAuth discovery. #1464

Upgrade notes

  • Redis warm-up. Upgraded gateways rebuild exact and semantic Redis cache entries from upstream responses. Cache hit rates can drop while the cache warms up. Old entries expire on their existing TTL. #1465
  • Fun-ASR route priority. The built-in Fun-ASR route takes precedence over path-only passthrough rules at /api-ws/v1/inference. To keep forwarding ordinary HTTP traffic that used a path-only rule there, move it to a different path or add the request's Host to the rule's hosts list. #1467
  • Path encoding. When the gateway parses and forwards a URL, a literal ^ in the path is sent as %5E. Update upstreams that match the raw path to accept the encoded form. #1464

What's Changed

  • deps: bump url to 2.5.9 to fix RUSTSEC-2026-0592 by @jarvis9443 in #1464
  • fix(usage): estimate only missing usage counts, drop the total beside an estimate, and report the estimate to the client by @jarvis9443 in #1463
  • fix(cache): preserve upstream token usage and details on cache hits by @jarvis9443 in #1465
  • feat(gemini): support Antigravity generation over Gemini and Chat Completions by @jarvis9443 in #1466
  • Support native DashScope Fun-ASR WebSocket transcription by @jarvis9443 in #1467
  • feat(budget): support IANA timezone for calendar budget period boundaries by @jarvis9443 in #1468
  • Unify client type classification across usage and metrics by @jarvis9443 in #1469
  • Add Gemini Decision classifiers for semantic routing by @jarvis9443 in #1470
  • docs(schema): describe both semantic routing modes by @jarvis9443 in #1471

Full Changelog: v1.11.0...v1.12.0