@@ -42,7 +42,7 @@ func TestCreateMysisWithZenNano(t *testing.T) {
4242
4343 // Mock credentials with API key
4444 creds := &config.Credentials{}
45- creds.SetAPIKey("opencode", "test-api-key-12345")
45+ creds.SetAPIKey("opencode_zen", "test-api-key-12345")
4646
4747 // Run EXACT initProviders logic
4848 for name, provCfg := range cfg.Providers {
@@ -53,8 +53,8 @@ func TestCreateMysisWithZenNano(t *testing.T) {
5353 registry.RegisterFactory(name, factory)
5454 t.Logf(" ✓ Registered as Ollama: %s", name)
5555 } else if provCfg.Endpoint == "https://opencode.ai/zen/v1" {
56- apiKey := creds.GetAPIKey("opencode")
57- t.Logf(" API key for opencode: %s", apiKey)
56+ apiKey := creds.GetAPIKey("opencode_zen")
57+ t.Logf(" API key for opencode_zen: %s", apiKey)
5858 if apiKey != "" {
5959 factory := provider.NewOpenCodeFactory(provCfg.Endpoint, apiKey, provCfg.RateLimit, provCfg.RateBurst)
6060 registry.RegisterFactory(name, factory)