Spaces:
Paused
Paused
Update api/main.go
Browse files- 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...",
|