fix: resolve retired/preview gemini model routing and test configuration errors
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled

This commit is contained in:
2026-06-18 13:32:34 +00:00
parent 73a82e6175
commit 25e246061f
16 changed files with 227 additions and 43 deletions
+2
View File
@@ -49,6 +49,7 @@ func (s *Server) handleGetModels(c *gin.Context) {
var result []gin.H
s.registryMu.RLock()
defer s.registryMu.RUnlock()
if s.registry != nil {
for pID, pInfo := range s.registry.Providers {
proxyProvider, allowed := allowedRegistryProviders[pID]
@@ -208,6 +209,7 @@ func (s *Server) handleUpdateModel(c *gin.Context) {
}
}
}
s.registryMu.RUnlock()
_, err := s.database.Exec(`
INSERT INTO model_configs (id, provider_id, enabled, prompt_cost_per_m, completion_cost_per_m, cache_read_cost_per_m, cache_write_cost_per_m, mapping)