Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -252,9 +252,6 @@ def chat_completions():
|
|
252 |
|
253 |
@app.route('/hf/v1/models', methods=['GET'])
|
254 |
def list_models():
|
255 |
-
is_authenticated, auth_error, status_code = func.authenticate_request(request)
|
256 |
-
if not is_authenticated:
|
257 |
-
return auth_error if auth_error else jsonify({'error': '未授权'}), status_code if status_code else 401
|
258 |
response = {"object": "list", "data": GEMINI_MODELS}
|
259 |
return jsonify(response)
|
260 |
|
|
|
252 |
|
253 |
@app.route('/hf/v1/models', methods=['GET'])
|
254 |
def list_models():
|
|
|
|
|
|
|
255 |
response = {"object": "list", "data": GEMINI_MODELS}
|
256 |
return jsonify(response)
|
257 |
|