Skip to content

Octafuse v2.0.0

Choose a tag to compare

@github-actions github-actions released this 31 Jul 02:19
· 167 commits to main since this release
1551b3e

What's changed

Major Changes

  • #74 c8b4372 Thanks @dyc87112! - 单键化 Provider(一个 provider 一把 api_key)并引入可切换路由策略。

    破坏性变更

    • 删除 provider_api_keys 表与 Admin /providers/:id/keys* API;密钥写入 providers.api_key,启用状态为 providers.status
    • 删除网关侧 per-key RPM/TPM/并发软限流与粘性 key 绑定(models.sticky_config
    • models.sticky_config 替换为 models.route_policymodel_routes 新增 weight
    • 新增全局 system_config.ROUTE_STRATEGY(默认 affinity)与四策略:affinity / weighted_random / strict / round_robin
    • Proxy 调度改为 priority 分层 + 策略排序 + provider 维度熔断;请求日志 provider_key_* 列语义改为 provider id/name/fingerprint

    上线前请用 scripts/db/export-provider-api-keys.mjs 导出密钥,再应用迁移 0015_single_provider_key.sql。详见 docs/operators/migrations/single-provider-key-cutover.md

Patch Changes

  • #74 58e6383 Thanks @dyc87112! - Improve Images /v1/images/edits client-error diagnostics: reject non-multipart/form-data Content-Type with an explicit message (instead of a misleading Missing model), and log structured [Gateway Images] request rejected fields (contentType, bodyKeys, hasModel, …) for all Images 4xx early exits. Proxy also logs truncated JSON bodies for Gateway-generated 4xx responses.

  • #76 6019524 Thanks @dyc87112! - Fix Admin Docker multi-arch build on linux/arm64 (Alpine musl): explicitly install @swc/core-linux-*-musl after npm ci --ignore-scripts, so next-intl can load native SWC when evaluating next.config under buildx/QEMU.


Container images (GHCR)

Tag v2.0.0 — multi-arch manifest digests (proxy / admin / migrate):

  • proxy: sha256:aa3024ee7ee51b8047c12739064e109956a198b8df1fb8f4e893b15bf02a23b6
    • ghcr.io/octafuse/octafuse-gateway-proxy@sha256:aa3024ee7ee51b8047c12739064e109956a198b8df1fb8f4e893b15bf02a23b6
  • admin: sha256:f53a339cfb1b93e8a799b1faf8d911a09e01da61fa42ec1373cd7a5df9df4915
    • ghcr.io/octafuse/octafuse-gateway-admin@sha256:f53a339cfb1b93e8a799b1faf8d911a09e01da61fa42ec1373cd7a5df9df4915
  • migrate: sha256:398087b642a67098cead985702a7106843fee067f63aac6a51e2bbb9f341d95d
    • ghcr.io/octafuse/octafuse-gateway-migrate@sha256:398087b642a67098cead985702a7106843fee067f63aac6a51e2bbb9f341d95d

Pull by digest for reproducible deploys, or by tag v2.0.0 after verifying digest.


Release process: .changeset/README.md · docs/maintainers/release-versioning.md