Yuan2006 commited on
Commit
b53fa00
·
verified ·
1 Parent(s): 93e1895

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -268,7 +268,7 @@ async def chat_completions(
268
  except Exception as e:
269
  return {"error": str(e)}
270
 
271
- @app.get("/hf/v1/models")
272
  async def list_models(api_key: str = Depends(get_api_key)):
273
  try:
274
  headers = {
 
268
  except Exception as e:
269
  return {"error": str(e)}
270
 
271
+ @app.get("/v1/models")
272
  async def list_models(api_key: str = Depends(get_api_key)):
273
  try:
274
  headers = {