game-wake-wolf commited on
Commit
3abba0b
·
verified ·
1 Parent(s): b186c42

Update api/main.go

Browse files
Files changed (1) hide show
  1. api/main.go +1 -1
api/main.go CHANGED
@@ -108,7 +108,7 @@ func reverseMapModelName(youModel string) string {
108
  var originalModel string
109
 
110
  func Handler(w http.ResponseWriter, r *http.Request) {
111
- if r.URL.Path != "/v1/chat/completions" {
112
  w.Header().Set("Content-Type", "application/json")
113
  json.NewEncoder(w).Encode(map[string]string{
114
  "status": "You2Api Service Running...",
 
108
  var originalModel string
109
 
110
  func Handler(w http.ResponseWriter, r *http.Request) {
111
+ if r.URL.Path != "/hf/v1/chat/completions" {
112
  w.Header().Set("Content-Type", "application/json")
113
  json.NewEncoder(w).Encode(map[string]string{
114
  "status": "You2Api Service Running...",