When both providers and model_list are configured, model_list entries with empty api_key or api_base now automatically inherit from the matching provider (matched by protocol prefix in the Model field). Example: a model_list entry with model='deepseek/deepseek-chat' and no api_key will inherit from providers.deepseek.api_key. Explicit model_list values always take precedence. Changes: - Add InheritProviderCredentials() in migration.go - Call it in LoadConfig() after provider-to-model-list conversion - Add protocolProviderMapping for all 25 supported protocols - 6 new tests covering inheritance, precedence, and edge cases Closes #1635 |
||
|---|---|---|
| .. | ||
| config.go | ||
| config_test.go | ||
| defaults.go | ||
| envkeys.go | ||
| migration.go | ||
| migration_test.go | ||
| model_config_test.go | ||
| multikey_test.go | ||
| version.go | ||
| version_test.go | ||