Make selection_model field optional with default value

- Set default value for selection_model to 'general' in AutoselectConfig
- Maintains backward compatibility with existing configuration files
- Prevents 422 errors when loading configs without selection_model field
parent 3b6feed8
...@@ -46,7 +46,7 @@ class AutoselectModelInfo(BaseModel): ...@@ -46,7 +46,7 @@ class AutoselectModelInfo(BaseModel):
class AutoselectConfig(BaseModel): class AutoselectConfig(BaseModel):
model_name: str model_name: str
description: str description: str
selection_model: str selection_model: str = "general"
fallback: str fallback: str
available_models: List[AutoselectModelInfo] available_models: List[AutoselectModelInfo]
......
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