:zap: [Enhance] add /api/v1 prefix for hf banning and ui compatability
Browse files- apis/chat_api.py +1 -1
apis/chat_api.py
CHANGED
@@ -111,7 +111,7 @@ class ChatAPIApp:
|
|
111 |
return data_response
|
112 |
|
113 |
def setup_routes(self):
|
114 |
-
for prefix in ["", "/v1"]:
|
115 |
self.app.get(
|
116 |
prefix + "/models",
|
117 |
summary="Get available models",
|
|
|
111 |
return data_response
|
112 |
|
113 |
def setup_routes(self):
|
114 |
+
for prefix in ["", "/v1", "/api/v1"]:
|
115 |
self.app.get(
|
116 |
prefix + "/models",
|
117 |
summary="Get available models",
|