feat(watcher): add Gemini models and OAuth model mappings change detection

This commit is contained in:
hkfires
2025-12-30 22:13:42 +08:00
parent e947266743
commit 2c01b2ef64
5 changed files with 150 additions and 0 deletions

View File

@@ -62,6 +62,9 @@ func (s *ConfigSynthesizer) synthesizeGeminiKeys(ctx *SynthesisContext) []*corea
if base != "" {
attrs["base_url"] = base
}
if hash := diff.ComputeGeminiModelsHash(entry.Models); hash != "" {
attrs["models_hash"] = hash
}
addConfigHeadersToAttrs(entry.Headers, attrs)
a := &coreauth.Auth{
ID: id,