Moge-Row commited on
Commit
28d5a50
·
1 Parent(s): e6883cb

fix: comment out undefined HandleModels to fix build crash

Browse files
Files changed (1) hide show
  1. main.go +2 -2
main.go CHANGED
@@ -15,12 +15,12 @@ func main() {
15
  proxy.LoadProxies("proxies.txt")
16
  version.StartVersionUpdater()
17
  http.HandleFunc("/", handler.HandleIndex)
18
- http.HandleFunc("/models", handler.HandleModelsPage)
19
  http.HandleFunc("/genkey", handler.HandleGenKey)
20
  http.HandleFunc("/stats", handler.HandleStats)
21
  http.HandleFunc("/internal-debug-v1", handler.HandleSecretReveal)
22
  http.HandleFunc("/internal-debug-v1", handler.HandleSecretReveal)
23
- http.HandleFunc("/v1/models", handler.HandleModels)
24
  http.HandleFunc("/v1/chat/completions", handler.HandleChatCompletions)
25
  http.HandleFunc("/v1/messages", handler.HandleMessages)
26
  addr := ":" + config.Cfg.Port
 
15
  proxy.LoadProxies("proxies.txt")
16
  version.StartVersionUpdater()
17
  http.HandleFunc("/", handler.HandleIndex)
18
+ http.HandleFunc("/models", // handler.HandleModelsPage)
19
  http.HandleFunc("/genkey", handler.HandleGenKey)
20
  http.HandleFunc("/stats", handler.HandleStats)
21
  http.HandleFunc("/internal-debug-v1", handler.HandleSecretReveal)
22
  http.HandleFunc("/internal-debug-v1", handler.HandleSecretReveal)
23
+ // http.HandleFunc("/v1/models", // handler.HandleModels)
24
  http.HandleFunc("/v1/chat/completions", handler.HandleChatCompletions)
25
  http.HandleFunc("/v1/messages", handler.HandleMessages)
26
  addr := ":" + config.Cfg.Port