mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-03 06:35:00 +08:00
fix(watcher): update Gemini provider name to "gemini-cli" in file synthesizer logic
This commit is contained in:
@@ -78,7 +78,7 @@ func synthesizeFileAuths(ctx *SynthesisContext, fullPath string, data []byte) []
|
||||
t, _ := metadata["type"].(string)
|
||||
provider := strings.ToLower(strings.TrimSpace(t))
|
||||
if provider == "gemini" {
|
||||
return nil
|
||||
provider = "gemini-cli"
|
||||
}
|
||||
if ctx.PluginAuthParser != nil {
|
||||
auths, handled, errParse := parsePluginFileAuths(ctx.PluginAuthParser, pluginapi.AuthParseRequest{
|
||||
@@ -115,7 +115,7 @@ func synthesizeFileAuths(ctx *SynthesisContext, fullPath string, data []byte) []
|
||||
return auths
|
||||
}
|
||||
}
|
||||
if provider == "" {
|
||||
if provider == "" || provider == "gemini-cli" {
|
||||
return nil
|
||||
}
|
||||
label := provider
|
||||
|
||||
Reference in New Issue
Block a user