feat: backend model load balancing support (#4927)
This commit is contained in:
parent
52ec152dd3
commit
d1dbbc1e33
47 changed files with 2191 additions and 256 deletions
|
|
@ -72,3 +72,22 @@ class CustomConfiguration(BaseModel):
|
|||
"""
|
||||
provider: Optional[CustomProviderConfiguration] = None
|
||||
models: list[CustomModelConfiguration] = []
|
||||
|
||||
|
||||
class ModelLoadBalancingConfiguration(BaseModel):
|
||||
"""
|
||||
Class for model load balancing configuration.
|
||||
"""
|
||||
id: str
|
||||
name: str
|
||||
credentials: dict
|
||||
|
||||
|
||||
class ModelSettings(BaseModel):
|
||||
"""
|
||||
Model class for model settings.
|
||||
"""
|
||||
model: str
|
||||
model_type: ModelType
|
||||
enabled: bool = True
|
||||
load_balancing_configs: list[ModelLoadBalancingConfiguration] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue