mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-01-03 07:42:30 -08:00
Merge branch 'main' into 26Mar
This commit is contained in:
commit
d2966d14ce
5 changed files with 17 additions and 3 deletions
|
|
@ -373,7 +373,7 @@ class Backend_Api(Api):
|
|||
return jsonify({"error": {"message": "Not found"}}), 404
|
||||
if (request.args.get("random", False)):
|
||||
return redirect(f"/media/{random.choice(match_files)}"), 302
|
||||
return redirect(f"/media/{match_files[int(request.args.get("skip", 0))]}"), 302
|
||||
return redirect(f"/media/{match_files[int(request.args.get('skip', 0))]}", 302)
|
||||
|
||||
@app.route('/backend-api/v2/upload_cookies', methods=['POST'])
|
||||
def upload_cookies():
|
||||
|
|
@ -457,4 +457,4 @@ class Backend_Api(Api):
|
|||
Returns:
|
||||
str: A JSON formatted string.
|
||||
"""
|
||||
return json.dumps(super()._format_json(response_type, content, **kwargs)) + "\n"
|
||||
return json.dumps(super()._format_json(response_type, content, **kwargs)) + "\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue