Skip to content

v0.2.4: 폴백 기능 (Fallback Feature)

Choose a tag to compare

@bluelucifer bluelucifer released this 10 Feb 21:48
· 18 commits to master since this release
0335f9a

변경 사항 / Changes

폴백 기능 / Fallback Feature

외부 제공자(Z.AI, Kimi 등)가 불안정하거나 장애일 때 Claude Code가 완전히 사용 불가능해지는 문제를 해결합니다.
외부 제공자 실패 시 원본 요청을 Anthropic API로 자동 재시도하여 가용성을 보장합니다.

Resolves the issue where Claude Code becomes completely unusable when external providers are unstable or down.
Automatically retries failed requests via Anthropic API to ensure availability.

주요 변경 / Key Changes:

  • RouteConfigfallback: bool 필드 추가 (기본값: true)
  • forward() / forward_with_transform() 시그니처를 &Parts로 변경 (재사용 가능)
  • 연결 오류 또는 비성공 상태(4xx/5xx) 시 Anthropic API로 자동 재시도
  • Add fallback: bool field to RouteConfig (default: true)
  • Change signature to &Parts for reuse on retry
  • Auto-retry via Anthropic on connection error or non-success status

설정 예시 / Configuration:

routes:
  - match: "glm"
    # fallback: true  # 기본값 — 생략 가능
    upstream:
      url: "https://api.z.ai/api/anthropic"
      auth:
        header: "x-api-key"
        value: "${ZAI_API_KEY}"

다운로드 / Downloads

```bash
git clone https://github.com/TheMagicTower/summon.git
cd summon
git checkout v0.2.4
cargo build --release
```

What's Changed

  • feat: 외부 제공자 실패 시 Anthropic API 폴백 (Fallback to Anthropic on provider failure) by @bluelucifer in #2

Full Changelog: v0.2.3...v0.2.4