(geminiHandler *gemini.GeminiAPIHandler)
| 1046 | } |
| 1047 | |
| 1048 | func (s *Server) geminiModelsHandler(geminiHandler *gemini.GeminiAPIHandler) gin.HandlerFunc { |
| 1049 | return func(c *gin.Context) { |
| 1050 | if s != nil && s.cfg != nil && s.cfg.Home.Enabled { |
| 1051 | s.handleHomeGeminiModels(c) |
| 1052 | return |
| 1053 | } |
| 1054 | |
| 1055 | geminiHandler.GeminiModels(c) |
| 1056 | } |
| 1057 | } |
| 1058 | |
| 1059 | func (s *Server) geminiGetHandler(geminiHandler *gemini.GeminiAPIHandler) gin.HandlerFunc { |
| 1060 | return func(c *gin.Context) { |
no test coverage detected