English | 简体中文
Enterprise multi-provider connectivity: OpenCode Go subscription, Anthropic ephemeral KV caching, and failover load balancing.
RimMind-Extension-ModelService extends RimMind-Core with advanced cloud subscription gateways, cutting-edge caching protocols, and zero-downtime failover load balancing.
- OpenCode Go Subscription Direct Access: One-click subscription preset (
https://opencode.ai/zen/go/v1) with automatic session isolation headers (x-opencode-session). - Anthropic Protocol Adapter: Implements native Anthropic
messagesprotocol withcache_control: {"type": "ephemeral"}markings on static L0/L1 prefix layers, maximizing hardware-level KV cache reuse. - Multi-Endpoint Latency Ping & Failover: Monitors endpoint health with millisecond ping checks and transparently shifts requests to backup providers if a primary endpoint returns HTTP 429 / 5xx errors.
High-speed gateway settings: Testing real-time connection latency with OpenCode Go and configuring automatic endpoint failover.
flowchart TD
Core["RimMind-Core Request Dispatcher"] --> Factory["IAIClientFactory Extension"]
Factory --> OpenCode["OpenCodeGoClient (Session Headers)"]
Factory --> Anthropic["AnthropicProtocolAdapter (Ephemeral Cache)"]
Factory --> Failover["Failover Load Balancer"]
Failover --> Health["Periodic Health & Latency Ping Monitor"]
1. Harmony
2. Core (Vanilla RimWorld)
3. RimMind-Core
4. RimMind-Extension-ModelService
Run unit tests directly:
dotnet test RimMind-Extension-ModelService/Tests/RimMindModelService.Tests.csproj -c ReleaseLicensed under the MIT License.