Skip to content

v0.9.0

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Aug 12:21

API Switch v0.9.0

🚀 New Features

AI Images Studio

  • Runtime-only AI Images studio: New dedicated workspace for AI image generation
  • Isolated image forwarding: Images forwarding isolated behind transparent ports for better security and stability
  • Image model filtering: Improved model discovery and filtering for image generation models
  • Reference image lifecycle: Proper management of reference images with aspect ratio preservation

Upstream Identity Injection

  • Anthropic client authentication: Inject Anthropic upstream client identity headers for proper authentication
  • CODEX originator header: Inject originator header for CODEX upstream in Responses protocol
  • Channel-level header injection: Configurable upstream header injection at channel level with improved UX

Resilience Improvements

  • Model retry mechanism: Configurable retry count for handling transient model failures
  • Failure status code recording: Log unrecovered status codes and original text for disable keyword enrichment
  • Default disable keywords: Added model_not_found, service temporarily unavailable, access_denied to default keywords

🐛 Bug Fixes

Protocol Fixes

  • Gemini passthrough: Fixed Gemini direct passthrough response handling
  • Protocol passthrough: Fixed critical protocol passthrough issues with table-driven configuration design
  • Claude streaming: Fixed Claude streaming thinking to text block transition
  • Claude model info: Ensured Claude model information injection displays correctly
  • tool_use block: Fixed tool_use block not closing before thinking/text block opens (protocol violation)
  • Responses protocol: Fixed Responses passthrough model marking

Channel Editor

  • Speed test display: Channel editor speed test now shows status codes with protocol-appropriate conversion
  • Protocol detection: Channel editor protocol detection respects user selection, no longer overridden by URL probing
  • Partial update preservation: Web admin channel headers preserved on partial updates

Web Admin

  • Reorder API: Fixed JSON field name for web admin reorder API
  • Model catalog: Refreshed models.dev catalog identity assets
  • UI improvements: Moved HeaderInjectionControl before notes section for better UX

Android

  • Security zones: Adapted Android security zones for proper display
  • Signing chain: Verified Android signing release chain
  • Shell capabilities: Added Android shell platform capabilities

🔧 Technical Changes

Code Quality

  • Removed unused CORS middleware and tests
  • Refactored routing resolve to remove deprecated sort_mode dead parameter
  • ServerApi AppEventHandle decoupled for headless data import
  • Kept failure handling focused on keyword discovery

Documentation

  • WHITEPAPER updated with runtime shape contract and two new feature documents
  • Added channel header injection documentation
  • Added model identity verification documentation

📱 Platform Support

Desktop (Windows/macOS/Linux)

  • All new features available
  • System tray integration maintained

Android

  • Security zone adaptation
  • Signing chain verification
  • Shell platform capabilities added

Web Admin

  • Browser-based management UI
  • All new features accessible via HTTP Admin APIs

Headless Mode

  • Backend proxy and admin services
  • ServerApi AppEventHandle decoupled for proper data import

🔄 Upgrade Notes

  1. Database: No migration required
  2. Configuration: New optional fields for retry mechanism and header injection
  3. API Compatibility: Fully backward compatible
  4. Android: Requires re-signing for security zone changes

📊 Performance

  • Improved channel speed test accuracy with protocol-aware status code display
  • Optimized image forwarding with isolated transparent ports
  • Enhanced failure handling with configurable retry mechanisms

🙏 Acknowledgments

Thanks to all contributors and users who provided feedback for this release.

Downloads

Portable binaries (no install needed, just run):

  • api-switch-windows-x64.exe — Windows
  • api-switch-macos-x64 — macOS Intel
  • api-switch-macos-arm64 — macOS Apple Silicon
  • api-switch-linux-x64 — Linux x64
  • api-switch-linux-arm64 — Linux ARM64
  • api-switch-linux-x64-headless — Linux x64 (无 GUI,体积更小,适合服务器/Termux)
  • api-switch-linux-arm64-headless — Linux ARM64 (无 GUI,适合服务器/Termux)
  • api-switch-android-universal-apk — Android universal APK

Installers (system integration):

  • *.msi / *.exe — Windows installer
  • *.dmg — macOS disk image
  • *.AppImage — Linux AppImage

Usage

  1. Download and run (or install via installer)
  2. Database is auto-created in the same directory
  3. Point your client to http://127.0.0.1:9090