Update README and DOCUMENTATION with rotations and autoselect API endpoints

parent e1743674
......@@ -88,16 +88,28 @@ Installs to:
## API Endpoints
### Root Endpoint
- `GET /` - Returns server status and list of available providers
### Chat Completions
- `POST /api/{provider_id}/chat/completions` - Handle chat completion requests
- Supports both streaming and non-streaming responses
- Provider ID can be a specific provider or rotation name
### Model List
- `GET /api/{provider_id}/models` - List available models for a provider or rotation
### General Endpoints
- `GET /` - Returns server status and list of available providers, rotations, and autoselect configurations
### Provider Endpoints
- `POST /api/{provider_id}/chat/completions` - Handle chat completion requests for a specific provider
- Supports both streaming and non-streaming responses
- `GET /api/{provider_id}/models` - List available models for a specific provider
### Rotation Endpoints
- `GET /api/rotations` - List all available rotation configurations
- `POST /api/rotations/chat/completions` - Chat completions using rotation (load balancing across providers)
- Weighted random selection of models
- Automatic failover between providers
- Supports both streaming and non-streaming responses
- `GET /api/rotations/models` - List all models across all rotation configurations
### Autoselect Endpoints
- `GET /api/autoselect` - List all available autoselect configurations
- `POST /api/autoselect/chat/completions` - Chat completions using AI-assisted selection based on content analysis
- Automatically selects the best provider based on request content
- Supports both streaming and non-streaming responses
- `GET /api/autoselect/models` - List all models across all autoselect configurations
## Provider Support
......
......@@ -65,9 +65,23 @@ See [`PYPI.md`](PYPI.md) for detailed instructions on publishing to PyPI.
See `config/providers.json` and `config/rotations.json` for configuration examples.
## API Endpoints
- `GET /` - Server status and provider list
- `POST /api/{provider_id}/chat/completions` - Chat completions
- `GET /api/{provider_id}/models` - List available models
### General Endpoints
- `GET /` - Server status and provider list (includes providers, rotations, and autoselect)
### Provider Endpoints
- `POST /api/{provider_id}/chat/completions` - Chat completions for a specific provider
- `GET /api/{provider_id}/models` - List available models for a specific provider
### Rotation Endpoints
- `GET /api/rotations` - List all available rotation configurations
- `POST /api/rotations/chat/completions` - Chat completions using rotation (load balancing across providers)
- `GET /api/rotations/models` - List all models across all rotation configurations
### Autoselect Endpoints
- `GET /api/autoselect` - List all available autoselect configurations
- `POST /api/autoselect/chat/completions` - Chat completions using AI-assisted selection based on content analysis
- `GET /api/autoselect/models` - List all models across all autoselect configurations
## Error Handling
- Rate limiting for failed requests
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment