Skip to content

v0.8.0 - Alternative AI Provider Support (Cerebras & Z.AI)

Choose a tag to compare

@Th0rgal Th0rgal released this 15 Feb 10:09
· 2815 commits to master since this release
0eecb9b

馃殌 New Features

Alternative AI Provider Support

  • Cerebras Integration: Full support for Cerebras AI models via OpenCode backend
    • llama-3.3-70b for deep reasoning tasks
    • llama-3.1-8b for quick operations
  • Z.AI Integration: Support for ZhipuAI (鏅鸿氨AI) GLM models
    • glm-5 for complex tasks
    • glm-4-flash for rapid responses
  • Example Configurations: Added oh-my-opencode profile examples in examples/oh-my-opencode/

OAuth Stability Improvements

  • Invalid Grant Detection: Automatically detect expired/revoked OAuth refresh tokens
  • NeedsReauth Status: New provider status to prompt users for re-authentication
  • Error Classification: Distinguish between invalid_grant errors and other OAuth failures
  • Provider Status Management: Added set_status method to AIProviderStore for dynamic status updates

Code Quality

  • Fixed all clippy warnings across the codebase
  • Improved error handling and logging for OAuth token refresh flows

馃摎 Documentation

  • New PROVIDERS.md guide for configuring AI providers
  • OAuth refresh analysis documentation
  • Persistent sessions design documentation

馃敡 Technical Details

  • OAuthRefreshError enum for better error handling
  • Enhanced token refresh loop with proper error categorization
  • Improved provider status tracking

馃И Testing

Both Cerebras and Z.AI providers have been tested end-to-end successfully with real API keys.

馃摝 Installation

curl -sSL https://install.sandboxed.sh | bash

Or pull the latest Docker image:

docker pull ghcr.io/th0rgal/sandboxed-sh:latest

Full Changelog: v0.7.9...v0.8.0