mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-08 21:10:48 +00:00
06e37d8026
Reworks PR #233 to follow the existing config-path pattern and make an externally-added Bedrock model fully usable from the web UI. - BEDROCK_CONFIG_PATH: replace the embedded per-agent config (model assignments + prices), mirroring OLLAMA_SERVER_CONFIG_PATH / LLM_SERVER_CONFIG_PATH. DefaultProviderConfig now takes *config.Config and reads the external file when set, else the embedded config.yml. - BEDROCK_MODELS_PATH: merge an external model catalog onto the embedded models.yml so new ids appear and are selectable under Settings -> Providers. DefaultModels now takes *config.Config and the resolver + provider construction pass it through; new ids are added, a matching name overrides the embedded entry. Wires both through docker-compose, .env.example, config.md and the README, and ships examples/configs/bedrock-glm-flash.{provider,models}.yml using the real AWS Bedrock id zai.glm-4.7-flash (In-Region, no inference-profile prefix, 4K max output). Dropped from #233: the ProviderConfig.Name field and the SeedDefaultProviders mechanism (a per-user DB write fired on startup and inside the read-only SettingsProviders resolver) -- the config already reaches the UI through DefaultProvidersConfig without any DB rows. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>