docs
0
# Configuration Management
1
2
Advanced configuration system for managing provider settings, routing rules, fallback strategies, and load balancing configurations.
3
4
## Capabilities
5
6
```python { .api }
7
class Configs:
8
def create(self, **kwargs): ...
9
def list(self, **kwargs): ...
10
def retrieve(self, **kwargs): ...
11
def update(self, **kwargs): ...
12
def delete(self, **kwargs): ...
13
```
14
15
## Usage Examples
16
17
```python
18
# Create configuration
19
config = portkey.configs.create({
20
"strategy": {"mode": "fallback"},
21
"targets": [
22
{"provider": "openai", "api_key": "key1"},
23
{"provider": "anthropic", "api_key": "key2"}
24
]
25
})
26
```