mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-03 06:35:00 +08:00
fix(registry): detect gemini interactions changes
This commit is contained in:
@@ -190,8 +190,8 @@ func fetchModelsFromRemote(ctx context.Context) (*staticModelsJSON, string) {
|
||||
}
|
||||
|
||||
// detectChangedProviders compares two model catalogs and returns provider names
|
||||
// whose model definitions differ. Codex tiers (free/team/plus/pro) are grouped
|
||||
// under a single "codex" provider.
|
||||
// whose model definitions differ. Gemini changes affect both Gemini protocols,
|
||||
// while Codex tiers (free/team/plus/pro) are grouped under one "codex" provider.
|
||||
func detectChangedProviders(oldData, newData *staticModelsJSON) []string {
|
||||
if oldData == nil || newData == nil {
|
||||
return nil
|
||||
@@ -206,6 +206,7 @@ func detectChangedProviders(oldData, newData *staticModelsJSON) []string {
|
||||
sections := []section{
|
||||
{"claude", oldData.Claude, newData.Claude},
|
||||
{"gemini", oldData.Gemini, newData.Gemini},
|
||||
{"gemini-interactions", oldData.Gemini, newData.Gemini},
|
||||
{"vertex", oldData.Vertex, newData.Vertex},
|
||||
{"aistudio", oldData.AIStudio, newData.AIStudio},
|
||||
{"codex", oldData.CodexFree, newData.CodexFree},
|
||||
|
||||
Reference in New Issue
Block a user