feat: clarify default LLM model config selection logic

Updated documentation and implementation to clearly define the priority order for selecting default LLM model configurations. The logic now explicitly states:
1. User's config marked with `is_default: true` (highest priority)
2. Group's config marked with `is_default: true`
3. First config in the list (user configs come before group configs)

This ensures consistent behavior between the API documentation and the actual implementation in the repository code.
This commit is contained in:
YueGuobin committed 2026-03-03 22:56:21 +08:00
1 parent f4723cd083
commit 7a2d15cb64
2 files changed
+18 -9

No files matched your search

+3 -3
View File
@@ -167,9 +167,9 @@ The `model_type` field accepts the following values:
| `total` | integer | Total count |
**Default Configuration Selection Logic:**
1. User's config marked with `is_default: true`
2. Group's config marked with `is_default: true` (if user has no default)
3. First config in the list (fallback if no default is marked)
1. User's config marked with `is_default: true` (highest priority)
2. Group's config marked with `is_default: true`
3. First config in the list (user configs come before group configs)
### LLMModelConfigListResponse