forked from Rockachopa/Timmy-time-dashboard
Phase 3: Cascade LLM Router with automatic failover
- YAML-based provider configuration (config/providers.yaml)
- Priority-ordered provider routing
- Circuit breaker pattern for failing providers
- Health check and availability monitoring
- Metrics tracking (latency, errors, success rates)
- Support for Ollama, OpenAI, Anthropic, AirLLM providers
- Automatic failover on rate limits or errors
- REST API endpoints for monitoring and control
- 41 comprehensive tests
API Endpoints:
- POST /api/v1/router/complete - Chat completion with failover
- GET /api/v1/router/status - Provider health status
- GET /api/v1/router/metrics - Detailed metrics
- GET /api/v1/router/providers - List all providers
- POST /api/v1/router/providers/{name}/control - Enable/disable/reset
- POST /api/v1/router/health-check - Run health checks
- GET /api/v1/router/config - View configuration
This commit is contained in:
31
data/self_modify_reports/20260226_002427_add_docstring.md
Normal file
31
data/self_modify_reports/20260226_002427_add_docstring.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# Self-Modify Report: 20260226_002427
|
||||
|
||||
**Instruction:** Add docstring
|
||||
**Target files:** src/foo.py
|
||||
**Dry run:** False
|
||||
**Backend:** ollama
|
||||
**Branch:** N/A
|
||||
**Result:** SUCCESS
|
||||
**Error:** none
|
||||
**Commit:** abc12345
|
||||
**Attempts:** 1
|
||||
**Autonomous cycles:** 0
|
||||
|
||||
## Attempt 1 -- complete
|
||||
|
||||
### LLM Response
|
||||
```
|
||||
llm raw
|
||||
```
|
||||
|
||||
### Edits Written
|
||||
#### src/foo.py
|
||||
```python
|
||||
x = 1
|
||||
|
||||
```
|
||||
|
||||
### Test Result: PASSED
|
||||
```
|
||||
5 passed
|
||||
```
|
||||
Reference in New Issue
Block a user