mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Add user information to encryption response in handle_synthesize method
This commit is contained in:
parent
2030bdd62a
commit
be52b6aff0
1 changed files with 2 additions and 1 deletions
|
|
@ -122,7 +122,8 @@ class Backend_Api(Api):
|
|||
# Send the public key to the client for encryption
|
||||
return jsonify({
|
||||
"public_key": public_key_pem.decode(),
|
||||
"data": encrypt_data(sub_public_key, str(int(time.time())))
|
||||
"data": encrypt_data(sub_public_key, str(int(time.time()))),
|
||||
"user": request.headers.get("x-user", "error")
|
||||
})
|
||||
|
||||
@app.route('/backend-api/v2/models', methods=['GET'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue