mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-19 18:47:41 +08:00
Fixes #6283 When adding a new embedding provider, the knowledge base creation page did not show the new provider until restart. Root cause: create_provider() did not update self.providers_config, which is used by get_provider_config_list() to return provider lists. This fix syncs the in-memory config after loading the new provider, consistent with how reload() handles config updates. Co-authored-by: ccsang <ccsang@users.noreply.github.com>