Hansimov commited on
Commit
6d3fdc0
1 Parent(s): 06c8d58

:zap: [Enhance] add /api/v1 prefix for hf banning and ui compatability

Browse files
Files changed (1) hide show
  1. 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",