@@ -57,8 +57,9 @@ func (s *ConfigSynthesizer) synthesizeGeminiKeys(ctx *SynthesisContext) []*corea
5757 proxyURL := strings .TrimSpace (entry .ProxyURL )
5858 id , token := idGen .Next ("gemini:apikey" , key , base )
5959 attrs := map [string ]string {
60- "source" : fmt .Sprintf ("config:gemini[%s]" , token ),
61- "api_key" : key ,
60+ "source" : fmt .Sprintf ("config:gemini[%s]" , token ),
61+ "source_type" : "api" ,
62+ "api_key" : key ,
6263 }
6364 if entry .Priority != 0 {
6465 attrs ["priority" ] = strconv .Itoa (entry .Priority )
@@ -104,8 +105,9 @@ func (s *ConfigSynthesizer) synthesizeClaudeKeys(ctx *SynthesisContext) []*corea
104105 base := strings .TrimSpace (ck .BaseURL )
105106 id , token := idGen .Next ("claude:apikey" , key , base )
106107 attrs := map [string ]string {
107- "source" : fmt .Sprintf ("config:claude[%s]" , token ),
108- "api_key" : key ,
108+ "source" : fmt .Sprintf ("config:claude[%s]" , token ),
109+ "source_type" : "api" ,
110+ "api_key" : key ,
109111 }
110112 if ck .Priority != 0 {
111113 attrs ["priority" ] = strconv .Itoa (ck .Priority )
@@ -151,8 +153,9 @@ func (s *ConfigSynthesizer) synthesizeCodexKeys(ctx *SynthesisContext) []*coreau
151153 prefix := strings .TrimSpace (ck .Prefix )
152154 id , token := idGen .Next ("codex:apikey" , key , ck .BaseURL )
153155 attrs := map [string ]string {
154- "source" : fmt .Sprintf ("config:codex[%s]" , token ),
155- "api_key" : key ,
156+ "source" : fmt .Sprintf ("config:codex[%s]" , token ),
157+ "source_type" : "api" ,
158+ "api_key" : key ,
156159 }
157160 if ck .Priority != 0 {
158161 attrs ["priority" ] = strconv .Itoa (ck .Priority )
@@ -211,6 +214,7 @@ func (s *ConfigSynthesizer) synthesizeOpenAICompat(ctx *SynthesisContext) []*cor
211214 id , token := idGen .Next (idKind , key , base , proxyURL )
212215 attrs := map [string ]string {
213216 "source" : fmt .Sprintf ("config:%s[%s]" , providerName , token ),
217+ "source_type" : "api" ,
214218 "base_url" : base ,
215219 "compat_name" : compat .Name ,
216220 "provider_key" : providerName ,
@@ -245,6 +249,7 @@ func (s *ConfigSynthesizer) synthesizeOpenAICompat(ctx *SynthesisContext) []*cor
245249 id , token := idGen .Next (idKind , base )
246250 attrs := map [string ]string {
247251 "source" : fmt .Sprintf ("config:%s[%s]" , providerName , token ),
252+ "source_type" : "api" ,
248253 "base_url" : base ,
249254 "compat_name" : compat .Name ,
250255 "provider_key" : providerName ,
@@ -291,6 +296,7 @@ func (s *ConfigSynthesizer) synthesizeVertexCompat(ctx *SynthesisContext) []*cor
291296 id , token := idGen .Next (idKind , key , base , proxyURL )
292297 attrs := map [string ]string {
293298 "source" : fmt .Sprintf ("config:vertex-apikey[%s]" , token ),
299+ "source_type" : "api" ,
294300 "base_url" : base ,
295301 "provider_key" : providerName ,
296302 }
0 commit comments