Clarify listener wording: Ollama-compatible clients, not Ollama-facing
This commit is contained in:
@@ -438,7 +438,7 @@ func isLLMRequest(r *http.Request) bool {
|
||||
return r.Method == http.MethodPost && llmPaths[r.URL.Path]
|
||||
}
|
||||
|
||||
// OllamaHandler serves the Ollama-facing listener.
|
||||
// OllamaHandler serves the listener for Ollama-compatible clients.
|
||||
func (s *Server) OllamaHandler() http.Handler {
|
||||
return s.logRequests("ollama", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
switch r.URL.Path {
|
||||
@@ -485,7 +485,7 @@ func (s *Server) OllamaHandler() http.Handler {
|
||||
}))
|
||||
}
|
||||
|
||||
// ComfyHandler serves the ComfyUI-facing listener.
|
||||
// ComfyHandler serves the listener for ComfyUI clients.
|
||||
func (s *Server) ComfyHandler() http.Handler {
|
||||
return s.logRequests("comfy", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
switch r.URL.Path {
|
||||
|
||||
@@ -46,8 +46,8 @@ type fakes struct {
|
||||
rec *recorder
|
||||
ollama *httptest.Server
|
||||
comfy *httptest.Server
|
||||
server *httptest.Server // Ollama-facing gpu-turnstile listener
|
||||
comfySrv *httptest.Server // ComfyUI-facing gpu-turnstile listener
|
||||
server *httptest.Server // gpu-turnstile listener for Ollama-compatible clients
|
||||
comfySrv *httptest.Server // gpu-turnstile listener for ComfyUI clients
|
||||
freeCh chan struct{}
|
||||
chatCh chan struct{}
|
||||
historyMu sync.Mutex
|
||||
|
||||
Reference in New Issue
Block a user