OpendAI commited on
Commit
2b17e26
·
verified ·
1 Parent(s): ddf5e2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -482,7 +482,7 @@ def root():
482
  "note": "Replace YOUR_EMAIL and YOUR_PASSWORD with your actual Not Diamond credentials."
483
  })
484
 
485
- @app.route('/ai/v1/models', methods=['GET'])
486
  def proxy_models():
487
  """返回可用模型列表。"""
488
  models = [
@@ -501,7 +501,7 @@ def proxy_models():
501
  "data": models
502
  })
503
 
504
- @app.route('/ai/v1/chat/completions', methods=['POST'])
505
  def handle_request():
506
  global multi_auth_manager
507
  if not multi_auth_manager:
 
482
  "note": "Replace YOUR_EMAIL and YOUR_PASSWORD with your actual Not Diamond credentials."
483
  })
484
 
485
+ @app.route('/api/models', methods=['GET'])
486
  def proxy_models():
487
  """返回可用模型列表。"""
488
  models = [
 
501
  "data": models
502
  })
503
 
504
+ @app.route('/api/chat/completions', methods=['POST'])
505
  def handle_request():
506
  global multi_auth_manager
507
  if not multi_auth_manager: