lower caching of home page
This commit is contained in:
parent
93a344f4c5
commit
507327db49
|
@ -118,7 +118,7 @@ app.register_blueprint(openai_bp, url_prefix='/api/openai/v1/')
|
|||
@app.route('/')
|
||||
@app.route('/api')
|
||||
@app.route('/api/openai')
|
||||
@cache.cached(timeout=60)
|
||||
@cache.cached(timeout=10)
|
||||
def home():
|
||||
if not opts.base_client_api:
|
||||
opts.base_client_api = f'{request.headers.get("Host")}/{opts.frontend_api_client.strip("/")}'
|
||||
|
|
Reference in New Issue