(geminiHandler *gemini.GeminiAPIHandler)
| 1057 | } |
| 1058 | |
| 1059 | func (s *Server) geminiGetHandler(geminiHandler *gemini.GeminiAPIHandler) gin.HandlerFunc { |
| 1060 | return func(c *gin.Context) { |
| 1061 | if s != nil && s.cfg != nil && s.cfg.Home.Enabled { |
| 1062 | s.handleHomeGeminiModel(c) |
| 1063 | return |
| 1064 | } |
| 1065 | |
| 1066 | geminiHandler.GeminiGetHandler(c) |
| 1067 | } |
| 1068 | } |
| 1069 | |
| 1070 | type homeModelEntry struct { |
| 1071 | id string |
no test coverage detected