Spaces:
Running
Running
Update api/chat.go
Browse files- api/chat.go +3 -3
api/chat.go
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
package
|
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 |
+
}
|