Channels, Routing, and Failover
A channel is a configuration unit that CloudAIKit uses to connect to an upstream provider. A model can be configured with multiple channels, and the platform selects the actual upstream based on the group, model, weight, priority, availability, and failure retry strategy.
Relationship Between the Three
| Concept | Description |
|---|---|
| Channel | A configuration unit that connects the platform to an upstream provider, including the address, key, and model list |
| Routing | Selects a channel based on the token, group, model, priority, weight, and health status |
| Failover | Attempts other channels according to the strategy when the primary channel fails or is unavailable |
After modifying channels or routing, it is recommended to first send a minimal request using a test token, then check the logs to confirm the actual channel used and model mapping.
