game-wake-wolf commited on
Commit
ad3b63a
·
verified ·
1 Parent(s): b7e5ff7

Update api/chat.go

Browse files
Files changed (1) hide show
  1. api/chat.go +3 -3
api/chat.go CHANGED
@@ -1,4 +1,4 @@
1
- package api
2
 
3
  import (
4
  "bufio"
@@ -111,7 +111,7 @@ func Handler(w http.ResponseWriter, r *http.Request) {
111
  return
112
  }
113
 
114
- if r.URL.Path != "/v1/chat/completions" {
115
  w.Header().Set("Content-Type", "application/json")
116
  w.WriteHeader(http.StatusOK)
117
  fmt.Fprintf(w, `{"status":"GetMerlin2Api Service Running...","message":"MoLoveSze..."}`)
@@ -345,4 +345,4 @@ func main() {
345
  if err := http.ListenAndServe(":"+port, nil); err != nil {
346
  fmt.Printf("Error starting server: %v\n", err)
347
  }
348
- }
 
1
+ package main
2
 
3
  import (
4
  "bufio"
 
111
  return
112
  }
113
 
114
+ if r.URL.Path != "/hf/v1/chat/completions" {
115
  w.Header().Set("Content-Type", "application/json")
116
  w.WriteHeader(http.StatusOK)
117
  fmt.Fprintf(w, `{"status":"GetMerlin2Api Service Running...","message":"MoLoveSze..."}`)
 
345
  if err := http.ListenAndServe(":"+port, nil); err != nil {
346
  fmt.Printf("Error starting server: %v\n", err)
347
  }
348
+ }