test(providers): extend the price-consistency guard to all 9 providers

anthropic, bedrock, and gemini also carry per-agent prices in config.yml but
were not covered. Adding them confirms no current drift and guards them going
forward. bedrock's loaders take a *config.Config, so they're wrapped with an
empty config to read the embedded catalog.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Sergey Kozyrenko
2026-06-26 13:55:26 +07:00
co-authored by Claude Opus 4.8
parent 4ecf2bbac1
commit a1908536b7
@@ -3,7 +3,11 @@ package providers
import (
"testing"
"pentagi/pkg/config"
"pentagi/pkg/providers/anthropic"
"pentagi/pkg/providers/bedrock"
"pentagi/pkg/providers/deepseek"
"pentagi/pkg/providers/gemini"
"pentagi/pkg/providers/glm"
"pentagi/pkg/providers/kimi"
"pentagi/pkg/providers/minimax"
@@ -23,6 +27,11 @@ func TestAgentConfigPricesMatchCatalog(t *testing.T) {
config func() (*pconfig.ProviderConfig, error)
models func() (pconfig.ModelsConfig, error)
}{
{"anthropic", anthropic.DefaultProviderConfig, anthropic.DefaultModels},
{"bedrock",
func() (*pconfig.ProviderConfig, error) { return bedrock.DefaultProviderConfig(&config.Config{}) },
func() (pconfig.ModelsConfig, error) { return bedrock.DefaultModels(&config.Config{}) }},
{"gemini", gemini.DefaultProviderConfig, gemini.DefaultModels},
{"deepseek", deepseek.DefaultProviderConfig, deepseek.DefaultModels},
{"glm", glm.DefaultProviderConfig, glm.DefaultModels},
{"kimi", kimi.DefaultProviderConfig, kimi.DefaultModels},