From 0fe5c2a58e9db1715dced05a9c2fca09a7df8de2 Mon Sep 17 00:00:00 2001 From: cherif Date: Sun, 29 Dec 2024 18:48:46 +0100 Subject: [PATCH] sdfd --- .idea/workspace.xml | 23 +- GlobalVariable.py | 13 +- Log/log_file.log | 2093 ++++++++++++++++++++++++++++++ main.py | 20 +- tools_cherif/mysy_openai_file.py | 142 +- 5 files changed, 2249 insertions(+), 42 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 845895a..d30116d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,11 +1,10 @@ - + - @@ -78,13 +77,6 @@ @@ -463,7 +462,6 @@ - @@ -488,6 +486,7 @@ - \ No newline at end of file diff --git a/GlobalVariable.py b/GlobalVariable.py index 894ec63..b7f1931 100644 --- a/GlobalVariable.py +++ b/GlobalVariable.py @@ -830,4 +830,15 @@ mysy_voice_instruction_collection_action = { Cette variable defini ou les messages vocaux utilisés par le système sont stocké """ -SYSTEM_VOICE_MESSAGES_LOCATION = "./admin_voices_messages/" \ No newline at end of file +SYSTEM_VOICE_MESSAGES_LOCATION = "./admin_voices_messages/" + + +""" +Confirmation d'un ordre de vocal +""" +VOICE_INSTRUCTION_CONFIRMATION = ["confirme", "confimer", "conformation"] + +""" +Annulation d'un ordre de vocal +""" +VOICE_INSTRUCTION_ANNULATION = ["annuler", "annulle", "refus", "refuser"] \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index f7cefd1..9a299e4 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -2945127,3 +2945127,2096 @@ INFO:root:2024-12-29 13:27:21.493113 : ++ FLASK PORT 5001 ++ INFO:root:2024-12-29 13:27:21.493113 : ++ LMS_BAS_URL mysy-training.com/ ++ WARNING:werkzeug: * Debugger is active! INFO:werkzeug: * Debugger PIN: 877-541-979 +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 16:28:20.558418 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 16:28:20.558418 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 16:28:20.558418 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 16:28:20.559419 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 16:28:20.559419 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 16:28:39.234532 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 16:28:39.234532 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 16:28:39.234532 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 16:28:39.234532 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 16:28:39.234532 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 17:07:37.163754 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:37.168199 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:37.171202 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:37.175276 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:37.177285 : Le token partner est vide +INFO:root:2024-12-29 17:07:37.179544 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:37.183771 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:37.186409 : Le token partner est vide +INFO:root:2024-12-29 17:07:37.187437 : La session de connexion n'est pas valide +INFO:root:2024-12-29 17:07:37.187437 : La session de connexion n'est pas valide +INFO:root:2024-12-29 17:07:37.188795 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:37] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:37] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:37.193219 : La session de connexion n'est pas valide +INFO:root:2024-12-29 17:07:37.194544 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:37] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:37.198032 : La session de connexion n'est pas valide +INFO:root:2024-12-29 17:07:37.199429 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:37.204860 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:37] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:38.193174 : getRecodedImage - Impossible de récupérer le recid du user +INFO:root:2024-12-29 17:07:38.193174 : getRecodedImage - Impossible de récupérer le recid du user +INFO:root:2024-12-29 17:07:38.193174 : get_partner_account - La session de connexion n'est pas valide +INFO:root:2024-12-29 17:07:38.193174 : get_partner_account - La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:38] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:38] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:38] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:38] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.333365 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.494976 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:40.498970 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:40.501735 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:40.508012 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:40.512286 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:40.520686 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.534594 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.542094 : Connexion du partner recid = 43598820dd270936c3d2fd822717d0f18f194b1a1b894aaf89 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.550775 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:40.563300 : Connexion du partner recid = 43598820dd270936c3d2fd822717d0f18f194b1a1b894aaf89 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.655164 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.661155 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.669306 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:40.673833 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/Get_List_Class_domaine/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.681337 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:40.692465 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/Get_List_class_metier/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/Get_List_Class_Categorie/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.704659 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.712246 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.719260 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/Get_List_Class_domaine/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:40.728918 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/Get_List_class_metier/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/Get_List_Class_Categorie/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:40] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.684229 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:48.688231 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:48.692750 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.699745 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:48.703753 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:48.708745 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.714331 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.721330 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.726333 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:48.733329 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.741331 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.752330 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.770332 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:07:48.800602 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.819146 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.832552 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.843828 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:root:2024-12-29 17:07:48.846250 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.875651 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:48.884567 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:48] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:07:54.886891 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:07:54] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:08:02.908693 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:08:03 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'20'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'803'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_f42cfc996583fbe614155735c2651c22'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=ehXHszH_66J5D6ZC_rYjmMlhalLxXboquHKcyOIXX28-1735488483-1.0.1.1-Rkivqc0DUqQbKmbOKwPxlBUIpl8g8vs8SMo0csxcJS4SqbGC5hHLg_IYheoj0OkJ.Sa2qn_O6aZ26U6k4spNWw; path=/; expires=Sun, 29-Dec-24 16:38:03 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=5NCdZtz25Vi_c4A5TOW80dlkvp.5R9RL4Z1zbX3nJrc-1735488483355-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b0be70de1ebb0-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers([('date', 'Sun, 29 Dec 2024 16:08:03 GMT'), ('content-type', 'application/json'), ('content-length', '20'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-1wqtln7hwej6qqr3ar1uf5ok'), ('openai-processing-ms', '803'), ('openai-version', '2020-10-01'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('x-ratelimit-limit-requests', '500'), ('x-ratelimit-remaining-requests', '499'), ('x-ratelimit-reset-requests', '120ms'), ('x-request-id', 'req_f42cfc996583fbe614155735c2651c22'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=ehXHszH_66J5D6ZC_rYjmMlhalLxXboquHKcyOIXX28-1735488483-1.0.1.1-Rkivqc0DUqQbKmbOKwPxlBUIpl8g8vs8SMo0csxcJS4SqbGC5hHLg_IYheoj0OkJ.Sa2qn_O6aZ26U6k4spNWw; path=/; expires=Sun, 29-Dec-24 16:38:03 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=5NCdZtz25Vi_c4A5TOW80dlkvp.5R9RL4Z1zbX3nJrc-1735488483355-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '8f9b0be70de1ebb0-CDG'), ('alt-svc', 'h3=":443"; ma=86400')]) +DEBUG:openai._base_client:request_id: req_f42cfc996583fbe614155735c2651c22 +INFO:root:2024-12-29 17:08:04.121425 : add_class - Creation formation : Le champ 'titre' n'est pas autorisé, Creation formation annulée +INFO:root:2024-12-29 17:08:04.122963 : voice_instruction_make_instruction -too many values to unpack (expected 2) - Line : 782 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Erreur - Impossible de réaliser : 'voice_instruction_make_instruction' ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:08:05 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1404'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-6689858b9b-qztwn'), (b'x-envoy-upstream-service-time', b'1391'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_ca671e6738c13b9d061b3fc7ac4419cd'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b0bed6b9aebb0-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 16:08:05 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1404', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-6689858b9b-qztwn', 'x-envoy-upstream-service-time': '1391', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_ca671e6738c13b9d061b3fc7ac4419cd', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b0bed6b9aebb0-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_ca671e6738c13b9d061b3fc7ac4419cd +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:08:06] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:11:19.819987 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:11:19.819987 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:11:19.819987 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:11:19.819987 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:11:19.821344 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:12:50.620462 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:12:50.621459 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:12:50.621459 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:12:50.621459 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:12:50.621459 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:13:02.995390 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:13:02.995390 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:13:02.995390 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:13:02.995390 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:13:02.995390 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:13:42.727918 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:13:42.728918 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:13:42.728918 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:13:42.728918 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:13:42.728918 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 17:13:42.772233 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:13:42] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:13:51.740411 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:13:51 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'20'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'595'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_b124b192f652bb36d769e0ba728fb061'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=SN8YFwFh48xSqaE50zW8rRWHxFyjIvqkkKjsoIwwnmI-1735488831-1.0.1.1-LmKSfYuMlrVX5WOHQZ9EMenEqZhmuxL8OfJ7j0DueQtEhSD5QweOwa1nR.Lf0lHA_dmen3AeTcIMsEhu3ZMRSQ; path=/; expires=Sun, 29-Dec-24 16:43:51 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=2XTNuSswa.1Qor7YpIhokTV.waFepM738kFTzQRjRRI-1735488831889-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b146a9c209e6c-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers([('date', 'Sun, 29 Dec 2024 16:13:51 GMT'), ('content-type', 'application/json'), ('content-length', '20'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-1wqtln7hwej6qqr3ar1uf5ok'), ('openai-processing-ms', '595'), ('openai-version', '2020-10-01'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('x-ratelimit-limit-requests', '500'), ('x-ratelimit-remaining-requests', '499'), ('x-ratelimit-reset-requests', '120ms'), ('x-request-id', 'req_b124b192f652bb36d769e0ba728fb061'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=SN8YFwFh48xSqaE50zW8rRWHxFyjIvqkkKjsoIwwnmI-1735488831-1.0.1.1-LmKSfYuMlrVX5WOHQZ9EMenEqZhmuxL8OfJ7j0DueQtEhSD5QweOwa1nR.Lf0lHA_dmen3AeTcIMsEhu3ZMRSQ; path=/; expires=Sun, 29-Dec-24 16:43:51 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=2XTNuSswa.1Qor7YpIhokTV.waFepM738kFTzQRjRRI-1735488831889-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '8f9b146a9c209e6c-CDG'), ('alt-svc', 'h3=":443"; ma=86400')]) +DEBUG:openai._base_client:request_id: req_b124b192f652bb36d769e0ba728fb061 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:13:52 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'20'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'500'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_69411a97ce14f561fad5a9b597aa8043'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b146f68769e6c-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 16:13:52 GMT', 'content-type': 'application/json', 'content-length': '20', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '500', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_69411a97ce14f561fad5a9b597aa8043', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b146f68769e6c-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_69411a97ce14f561fad5a9b597aa8043 +INFO:root:2024-12-29 17:13:54.685062 : add_class - Creation formation : Le champ 'titre' n'est pas autorisé, Creation formation annulée +INFO:root:2024-12-29 17:13:54.687061 : voice_instruction_make_instruction -too many values to unpack (expected 2) - Line : 800 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Erreur - Impossible de réaliser : 'voice_instruction_make_instruction' ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:13:55 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1686'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-6c54968c78-gk6nj'), (b'x-envoy-upstream-service-time', b'1670'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_cc89419b6f1dade3b747747e47147b11'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b147c7c699e6c-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 16:13:55 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1686', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-6c54968c78-gk6nj', 'x-envoy-upstream-service-time': '1670', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_cc89419b6f1dade3b747747e47147b11', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b147c7c699e6c-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_cc89419b6f1dade3b747747e47147b11 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:13:57] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\GlobalVariable.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:16:20.232164 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:16:20.232164 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:16:20.232164 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:16:20.232164 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:16:20.232164 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\GlobalVariable.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:29:05.960477 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:29:05.960477 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:29:05.960477 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:29:05.960477 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:29:05.961477 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:29:16.593132 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:29:16.593132 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:29:16.593132 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:29:16.593132 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:29:16.593132 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 17:29:16.890883 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:29:16] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:29:25.425017 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:29:28 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'34'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'2885'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_386ce16ffdab5fdeb3fde16151e91d96'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=NIW2H__jZlAYY3aXEX1qSMdbF5rYxZjoUTmnT6iAjOo-1735489768-1.0.1.1-eCM7pM7c_4Qjbh3CVuGkjEqeLJQh6ZwHgiE0leYun4nvO_JU4IN_OjYKM9.pAEaLKQ2uNzrjFgUNcPIwR1CHag; path=/; expires=Sun, 29-Dec-24 16:59:28 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=mwgkwF2SyUikz1ywwS6P0TLd30RaxEKPiwE31I34Y9U-1735489768019-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b2b364e536ff6-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers([('date', 'Sun, 29 Dec 2024 16:29:28 GMT'), ('content-type', 'application/json'), ('content-length', '34'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-1wqtln7hwej6qqr3ar1uf5ok'), ('openai-processing-ms', '2885'), ('openai-version', '2020-10-01'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('x-ratelimit-limit-requests', '500'), ('x-ratelimit-remaining-requests', '499'), ('x-ratelimit-reset-requests', '120ms'), ('x-request-id', 'req_386ce16ffdab5fdeb3fde16151e91d96'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=NIW2H__jZlAYY3aXEX1qSMdbF5rYxZjoUTmnT6iAjOo-1735489768-1.0.1.1-eCM7pM7c_4Qjbh3CVuGkjEqeLJQh6ZwHgiE0leYun4nvO_JU4IN_OjYKM9.pAEaLKQ2uNzrjFgUNcPIwR1CHag; path=/; expires=Sun, 29-Dec-24 16:59:28 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=mwgkwF2SyUikz1ywwS6P0TLd30RaxEKPiwE31I34Y9U-1735489768019-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '8f9b2b364e536ff6-CDG'), ('alt-svc', 'h3=":443"; ma=86400')]) +DEBUG:openai._base_client:request_id: req_386ce16ffdab5fdeb3fde16151e91d96 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:29:32 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'31'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'4313'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_a6a1aef56419e267a9845452481e2fde'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b2b4ac8cc6ff6-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 16:29:32 GMT', 'content-type': 'application/json', 'content-length': '31', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '4313', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_a6a1aef56419e267a9845452481e2fde', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b2b4ac8cc6ff6-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_a6a1aef56419e267a9845452481e2fde +INFO:root:2024-12-29 17:29:34.340485 : add_class - Creation formation : Le champ 'titre' n'est pas autorisé, Creation formation annulée +INFO:root:2024-12-29 17:29:34.342517 : voice_instruction_make_instruction -too many values to unpack (expected 2) - Line : 814 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Erreur - Impossible de réaliser : 'voice_instruction_make_instruction' ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:29:34 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1230'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-85fffc8577-59pcc'), (b'x-envoy-upstream-service-time', b'1206'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_70b0f90548c44000fa73b626fa06277a'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b2b6d2b3a6ff6-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 16:29:34 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1230', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-85fffc8577-59pcc', 'x-envoy-upstream-service-time': '1206', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_70b0f90548c44000fa73b626fa06277a', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b2b6d2b3a6ff6-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_70b0f90548c44000fa73b626fa06277a +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:29:36] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:35:15.020835 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:35:15] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:35:26.650011 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:35:27 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'20'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'889'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_c2dc378df9f0134e798512a435453adf'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b3408bed02a4d-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 16:35:27 GMT', 'content-type': 'application/json', 'content-length': '20', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '889', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_c2dc378df9f0134e798512a435453adf', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b3408bed02a4d-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_c2dc378df9f0134e798512a435453adf +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:35:29 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'20'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1029'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_ac66518bed52050f27330367294b1230'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b3411e83a2a4d-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 16:35:29 GMT', 'content-type': 'application/json', 'content-length': '20', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1029', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_ac66518bed52050f27330367294b1230', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b3411e83a2a4d-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_ac66518bed52050f27330367294b1230 +INFO:root:2024-12-29 17:35:29.790851 : add_class - Creation formation : Le champ 'titre' n'est pas autorisé, Creation formation annulée +INFO:root:2024-12-29 17:35:29.793843 : voice_instruction_make_instruction -too many values to unpack (expected 2) - Line : 814 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Erreur - Impossible de réaliser : 'voice_instruction_make_instruction' ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:35:30 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1623'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-5f98989b75-pg7qv'), (b'x-envoy-upstream-service-time', b'1607'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_358659fcffa080475c2c82dbfaf61f9f'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b341aba102a4d-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 16:35:30 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1623', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-5f98989b75-pg7qv', 'x-envoy-upstream-service-time': '1607', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_358659fcffa080475c2c82dbfaf61f9f', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b341aba102a4d-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_358659fcffa080475c2c82dbfaf61f9f +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:35:32] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:40:33.142656 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:40:33.142656 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:40:33.142656 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:40:33.142656 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:40:33.142656 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:42:02.458271 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:42:02.458271 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:42:02.458271 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:42:02.458271 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:42:02.458271 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:45:50.476235 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:45:50.477330 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:45:50.477330 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:45:50.477330 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:45:50.477330 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:46:14.988096 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:46:14.988096 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:46:14.988096 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:46:14.988096 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:46:14.988096 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:46:47.948022 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:46:47.949055 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:46:47.949055 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:46:47.949055 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:46:47.949055 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 17:46:47.990723 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:46:48] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:46:59.768666 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:47:00 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'11'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1215'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_5857e02d81c2a9b88e30306b6bb98ba3'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=ehash5j3nDooqstxX24DX.0538JPa.1vAKY59u6A8Qc-1735490820-1.0.1.1-duWxz8_ou_hIAW3Kp6.Pr3HbPaHAwMc0BTHAYn.mHVpshiNYaELr0pvf.h2TxjzmtKeWYa9UfcZuzcK_bXSNew; path=/; expires=Sun, 29-Dec-24 17:17:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=vCC6Fj5bjcVkS6.wiiNyOnZP895VfqySuBh116k5OAY-1735490820683-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b44f3fe6b9ed0-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers([('date', 'Sun, 29 Dec 2024 16:47:00 GMT'), ('content-type', 'application/json'), ('content-length', '11'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-1wqtln7hwej6qqr3ar1uf5ok'), ('openai-processing-ms', '1215'), ('openai-version', '2020-10-01'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('x-ratelimit-limit-requests', '500'), ('x-ratelimit-remaining-requests', '499'), ('x-ratelimit-reset-requests', '120ms'), ('x-request-id', 'req_5857e02d81c2a9b88e30306b6bb98ba3'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=ehash5j3nDooqstxX24DX.0538JPa.1vAKY59u6A8Qc-1735490820-1.0.1.1-duWxz8_ou_hIAW3Kp6.Pr3HbPaHAwMc0BTHAYn.mHVpshiNYaELr0pvf.h2TxjzmtKeWYa9UfcZuzcK_bXSNew; path=/; expires=Sun, 29-Dec-24 17:17:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=vCC6Fj5bjcVkS6.wiiNyOnZP895VfqySuBh116k5OAY-1735490820683-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '8f9b44f3fe6b9ed0-CDG'), ('alt-svc', 'h3=":443"; ma=86400')]) +DEBUG:openai._base_client:request_id: req_5857e02d81c2a9b88e30306b6bb98ba3 +INFO:root:2024-12-29 17:47:02.463136 : mysy_openai_get_voice_file -[Errno 2] No such file or directory: " Je n'ai pas compris l'instruction. merci de répéter " - ERRORRRR AT Line : 276 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:47:02] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:50:06.156066 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:50:06.156066 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:50:06.156066 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:50:06.156066 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:50:06.156066 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 17:50:06.945042 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:50:06] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 17:50:18.415018 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:50:19 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'40'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'773'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_9a19654b6f022d418d4594747d039ae1'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=8boEg7AACv2WUJJWNkguEp9MbHEkmvUbTMd1_xcdhO4-1735491019-1.0.1.1-KbrkwVTfgxe1fQZDrul1PbmKQmX879XCV3FeG4W9bbAEkKagzgrxSR5RsNhzDpVpPlyXdjrlD4h3u348yQB82Q; path=/; expires=Sun, 29-Dec-24 17:20:19 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=iNMUlxgyTNY2cu2j4fBAFCKJ7HTgMNbYHkFGCN8Y9Xo-1735491019113-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b49ce78369ec2-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers([('date', 'Sun, 29 Dec 2024 16:50:19 GMT'), ('content-type', 'application/json'), ('content-length', '40'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-1wqtln7hwej6qqr3ar1uf5ok'), ('openai-processing-ms', '773'), ('openai-version', '2020-10-01'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('x-ratelimit-limit-requests', '500'), ('x-ratelimit-remaining-requests', '499'), ('x-ratelimit-reset-requests', '120ms'), ('x-request-id', 'req_9a19654b6f022d418d4594747d039ae1'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=8boEg7AACv2WUJJWNkguEp9MbHEkmvUbTMd1_xcdhO4-1735491019-1.0.1.1-KbrkwVTfgxe1fQZDrul1PbmKQmX879XCV3FeG4W9bbAEkKagzgrxSR5RsNhzDpVpPlyXdjrlD4h3u348yQB82Q; path=/; expires=Sun, 29-Dec-24 17:20:19 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=iNMUlxgyTNY2cu2j4fBAFCKJ7HTgMNbYHkFGCN8Y9Xo-1735491019113-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '8f9b49ce78369ec2-CDG'), ('alt-svc', 'h3=":443"; ma=86400')]) +DEBUG:openai._base_client:request_id: req_9a19654b6f022d418d4594747d039ae1 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 16:50:20 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1142'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-7d46678889-bncsq'), (b'x-envoy-upstream-service-time', b'1129'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_743007d9a5e3f5347457139bafd5f75b'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b49d5c81c9ec2-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 16:50:20 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1142', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-7d46678889-bncsq', 'x-envoy-upstream-service-time': '1129', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_743007d9a5e3f5347457139bafd5f75b', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b49d5c81c9ec2-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_743007d9a5e3f5347457139bafd5f75b +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:50:21] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:51:05.433009 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:51:05.433009 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:51:05.433009 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:51:05.433009 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:51:05.433009 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 17:58:48.559206 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 17:58:48.560236 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 17:58:48.560236 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 17:58:48.560236 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 17:58:48.560236 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 17:58:52.299954 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 17:58:52.941846 : mysy_openai_voice_to_text -'token' - ERRORRRR AT Line : 188 +INFO:root:2024-12-29 17:58:52.943839 : mysy_openai_instruction_collection_confirmation_texte -'False' is not a valid ObjectId, it must be a 12-byte input or a 24-character hex string - ERRORRRR AT Line : 90 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 17:58:52] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 18:00:38.898040 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 18:00:38.898040 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 18:00:38.898040 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 18:00:38.898040 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 18:00:38.898040 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 18:00:47.610775 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:00:47.613794 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:00:47.617064 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:00:47.620387 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:00:47.626141 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:00:47.630184 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:00:47.637734 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:00:47.645805 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:00:47.652631 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:00:47.660426 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:00:47.669382 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:00:47.681013 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:00:47.709952 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:00:47.799252 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:00:47.811603 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:00:47.823660 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:47] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:00:48.380087 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:root:2024-12-29 18:00:48.380087 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:root:2024-12-29 18:00:48.380087 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:root:2024-12-29 18:00:48.380087 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:48] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:48] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:48] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:00:48] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:01:05.202284 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:01:05] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 500 - +INFO:root:2024-12-29 18:03:25.879371 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:03:25.882925 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:25] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:25.887256 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:25] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:25.891122 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:25] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:25.899529 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:25] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:35.932984 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:03:35.937242 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:03:35.939531 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:03:35.944342 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:03:35.952407 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:35] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:35.958212 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:35] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:35] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:35.968355 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:03:35.972470 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:35] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:35.978535 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:03:35.986367 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:35] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:35] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:35.999329 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:03:36.005834 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:36] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:36.027830 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:03:36.042259 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:36] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:36.057592 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:03:36.057592 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:36] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:36] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:36.069814 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:36] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:36.079736 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:36] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:36.116789 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:36] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:36.125235 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:36] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:36] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:36] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:44.637221 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:03:44] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:03:57.684430 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:04:02 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'4583'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_8af2e5b1fd2168ac8386f3c512fcc79e'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=Rss2tAaLWFUPo58ydgjl66aM_5Jtz5Pdv07eOWEOXhQ-1735491842-1.0.1.1-UP9l2_bYUrOk4EqreXkp9zdTmxFiJV1EGi.szQ809b2MWHlPmB7Y_507oaiLtbL7hpcTHA3xN28bSYWUdovjew; path=/; expires=Sun, 29-Dec-24 17:34:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=qM1o0F9XdRwz7NT4Cnv00OaJVdDshbdXMvYpoYY98KI-1735491842241-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b5dcf8e5cd16e-CDG'), (b'Content-Encoding', b'br'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers([('date', 'Sun, 29 Dec 2024 17:04:02 GMT'), ('content-type', 'application/json'), ('transfer-encoding', 'chunked'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-1wqtln7hwej6qqr3ar1uf5ok'), ('openai-processing-ms', '4583'), ('openai-version', '2020-10-01'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('x-ratelimit-limit-requests', '500'), ('x-ratelimit-remaining-requests', '499'), ('x-ratelimit-reset-requests', '120ms'), ('x-request-id', 'req_8af2e5b1fd2168ac8386f3c512fcc79e'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=Rss2tAaLWFUPo58ydgjl66aM_5Jtz5Pdv07eOWEOXhQ-1735491842-1.0.1.1-UP9l2_bYUrOk4EqreXkp9zdTmxFiJV1EGi.szQ809b2MWHlPmB7Y_507oaiLtbL7hpcTHA3xN28bSYWUdovjew; path=/; expires=Sun, 29-Dec-24 17:34:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=qM1o0F9XdRwz7NT4Cnv00OaJVdDshbdXMvYpoYY98KI-1735491842241-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '8f9b5dcf8e5cd16e-CDG'), ('content-encoding', 'br'), ('alt-svc', 'h3=":443"; ma=86400')]) +DEBUG:openai._base_client:request_id: req_8af2e5b1fd2168ac8386f3c512fcc79e +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:04:04 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1872'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-5f98989b75-5qz6z'), (b'x-envoy-upstream-service-time', b'1857'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_70bd6ddd8e0e085368ecbceff0517f1a'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b5deebbcdd16e-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:04:04 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1872', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-5f98989b75-5qz6z', 'x-envoy-upstream-service-time': '1857', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_70bd6ddd8e0e085368ecbceff0517f1a', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b5deebbcdd16e-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_70bd6ddd8e0e085368ecbceff0517f1a +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:04:05] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:05:09.188692 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:05:09] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:05:22.284699 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:05:23 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'17'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1391'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_23f4a7f1ad1fd66fb27a982b2b4cc92a'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b5fde399bd081-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:05:23 GMT', 'content-type': 'application/json', 'content-length': '17', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1391', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_23f4a7f1ad1fd66fb27a982b2b4cc92a', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b5fde399bd081-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_23f4a7f1ad1fd66fb27a982b2b4cc92a +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:05:24 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1389'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-6646c6d4d-9mkfr'), (b'x-envoy-upstream-service-time', b'1348'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_326d0d4155b6fde698816a852f93a684'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b5fe94b91d081-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:05:24 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1389', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-6646c6d4d-9mkfr', 'x-envoy-upstream-service-time': '1348', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_326d0d4155b6fde698816a852f93a684', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b5fe94b91d081-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_326d0d4155b6fde698816a852f93a684 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:05:26] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:06:28.258940 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:06:28] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:06:42.894816 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:06:44 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'20'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1191'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_5e6e63cad99b3289976355e552ad9428'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b61d7ccbc0210-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:06:44 GMT', 'content-type': 'application/json', 'content-length': '20', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1191', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_5e6e63cad99b3289976355e552ad9428', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b61d7ccbc0210-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_5e6e63cad99b3289976355e552ad9428 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:06:46 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1494'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-5f98989b75-l96dx'), (b'x-envoy-upstream-service-time', b'1436'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_962baaeb74bae1ed81427225f499cb34'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b61e56b9e0210-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:06:46 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1494', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-5f98989b75-l96dx', 'x-envoy-upstream-service-time': '1436', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_962baaeb74bae1ed81427225f499cb34', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b61e56b9e0210-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_962baaeb74bae1ed81427225f499cb34 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:06:48] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:07:41.443648 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:07:41] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:07:55.520072 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:07:56 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'22'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'961'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_89d65de516e6c9dfc98e8932e050c6f8'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b639bda837030-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:07:56 GMT', 'content-type': 'application/json', 'content-length': '22', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '961', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_89d65de516e6c9dfc98e8932e050c6f8', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b639bda837030-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_89d65de516e6c9dfc98e8932e050c6f8 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:07:58 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1847'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-5f98989b75-b7xrx'), (b'x-envoy-upstream-service-time', b'1790'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_77db6b8b4cd4b631229ea892934f6a8f'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b63a57c8e7030-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:07:58 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1847', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-5f98989b75-b7xrx', 'x-envoy-upstream-service-time': '1790', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_77db6b8b4cd4b631229ea892934f6a8f', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b63a57c8e7030-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_77db6b8b4cd4b631229ea892934f6a8f +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:08:00] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:09:40.973234 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:09:40] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:09:41.069189 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:09:41] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:09:52.592330 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:09:53 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'19'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1109'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_a14a2741812c5db8a327be20d46f2dde'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b66786859f0ab-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:09:53 GMT', 'content-type': 'application/json', 'content-length': '19', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1109', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_a14a2741812c5db8a327be20d46f2dde', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b66786859f0ab-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_a14a2741812c5db8a327be20d46f2dde +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " L'instruction a été annulée", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:09:55 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1229'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-966fb9c65-8pfdr'), (b'x-envoy-upstream-service-time', b'1219'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_4190c219febfdf3892c3a21d4b2037e2'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b66842cdaf0ab-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:09:55 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1229', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-966fb9c65-8pfdr', 'x-envoy-upstream-service-time': '1219', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_4190c219febfdf3892c3a21d4b2037e2', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b66842cdaf0ab-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_4190c219febfdf3892c3a21d4b2037e2 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:09:56] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:11:56.921722 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:11:56.926622 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:11:56.931049 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:11:56] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:11:56.935585 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:11:56] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:11:56] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:11:56.951968 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:11:56] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:12:03.217401 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:12:03.222033 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:12:03.226896 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:12:03.231339 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:12:03.236795 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:12:03.241757 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:12:03.253225 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:12:03.259042 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:12:03.264358 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:12:03.272693 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:12:03.288430 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:12:03.294390 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:12:03.312575 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:12:03.322152 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:12:03.348583 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:03] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:12:07.512679 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:07] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:12:23.470929 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:12:26 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'22'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1521'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_862c6024a6c24aa7be1730b1f7fe1657'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b6a266a08f0cf-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:12:26 GMT', 'content-type': 'application/json', 'content-length': '22', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1521', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_862c6024a6c24aa7be1730b1f7fe1657', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b6a266a08f0cf-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_862c6024a6c24aa7be1730b1f7fe1657 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:12:28 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1873'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-68478d78f5-82fjm'), (b'x-envoy-upstream-service-time', b'1848'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_e57ce473f72512281481ec55fd259711'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b6a3c8bbaf0cf-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:12:28 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1873', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-68478d78f5-82fjm', 'x-envoy-upstream-service-time': '1848', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_e57ce473f72512281481ec55fd259711', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b6a3c8bbaf0cf-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_e57ce473f72512281481ec55fd259711 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:29] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:12:44.689237 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:12:44] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:12:57.683769 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:12:59 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'19'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'2118'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_3a453a1811e472c228a2cb4504c36459'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b6afc2f6f99a8-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:12:59 GMT', 'content-type': 'application/json', 'content-length': '19', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '2118', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_3a453a1811e472c228a2cb4504c36459', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b6afc2f6f99a8-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_3a453a1811e472c228a2cb4504c36459 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:13:02 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1747'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-68b97664cf-2mh9m'), (b'x-envoy-upstream-service-time', b'1645'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_269090048467cb0c10109bdc0abfddd5'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b6b0e28d099a8-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:13:02 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1747', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-68b97664cf-2mh9m', 'x-envoy-upstream-service-time': '1645', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_269090048467cb0c10109bdc0abfddd5', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b6b0e28d099a8-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_269090048467cb0c10109bdc0abfddd5 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:13:03] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\mysy_openai_file.py', reloading +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 18:16:07.005009 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 18:16:07.005009 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 18:16:07.006011 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 18:16:07.006011 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 18:16:07.006011 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 18:16:23.486243 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 18:16:23.486243 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 18:16:23.486243 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 18:16:23.486243 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 18:16:23.486243 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 18:18:32.229585 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 18:18:32.229585 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 18:18:32.229585 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 18:18:32.230595 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 18:18:32.230595 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 18:20:14.298737 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:20:14.302252 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:20:14] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:20:14.307012 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:20:14.310228 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:20:14] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:20:14] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:20:15.419789 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:20:15] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:20:20.179786 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:20:20] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:20:32.533088 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:20:35 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'11'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'2987'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_2a30ef668f44c827e283de27a6b4175a'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=2EwVRaMebm0ya5ATha1QoAdKeMcSDg9opMczExuZXro-1735492835-1.0.1.1-nvxQ7M73n8mmCmLZEkVK8wK5iXOThxouXaAFWwl1C1Ym_cMPSsBfAVJfSnwU5YLnPHdUgCNedvs4g2i_YVI2Og; path=/; expires=Sun, 29-Dec-24 17:50:35 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=AQIr2mU_lvq7O16BZBc_wMIjSBMNTgwXuWgxPgioeFc-1735492835307-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b761928db3c77-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers([('date', 'Sun, 29 Dec 2024 17:20:35 GMT'), ('content-type', 'application/json'), ('content-length', '11'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-1wqtln7hwej6qqr3ar1uf5ok'), ('openai-processing-ms', '2987'), ('openai-version', '2020-10-01'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('x-ratelimit-limit-requests', '500'), ('x-ratelimit-remaining-requests', '499'), ('x-ratelimit-reset-requests', '120ms'), ('x-request-id', 'req_2a30ef668f44c827e283de27a6b4175a'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=2EwVRaMebm0ya5ATha1QoAdKeMcSDg9opMczExuZXro-1735492835-1.0.1.1-nvxQ7M73n8mmCmLZEkVK8wK5iXOThxouXaAFWwl1C1Ym_cMPSsBfAVJfSnwU5YLnPHdUgCNedvs4g2i_YVI2Og; path=/; expires=Sun, 29-Dec-24 17:50:35 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=AQIr2mU_lvq7O16BZBc_wMIjSBMNTgwXuWgxPgioeFc-1735492835307-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '8f9b761928db3c77-CDG'), ('alt-svc', 'h3=":443"; ma=86400')]) +DEBUG:openai._base_client:request_id: req_2a30ef668f44c827e283de27a6b4175a +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:20:37 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1503'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-6689858b9b-ldmcp'), (b'x-envoy-upstream-service-time', b'1486'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_8c8c7020c818944b0c7f8c9911a404f0'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b762cc9cf3c77-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:20:37 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1503', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-6689858b9b-ldmcp', 'x-envoy-upstream-service-time': '1486', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_8c8c7020c818944b0c7f8c9911a404f0', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b762cc9cf3c77-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_8c8c7020c818944b0c7f8c9911a404f0 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:20:39] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:22:01.949471 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:22:01.953313 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:22:01] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:22:01.958318 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:22:01] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:22:01.963200 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:22:01.971273 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:22:01] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:22:01] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:22:34.524964 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:22:34] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:22:35.313236 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:22:35.317752 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:22:35] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:22:35.321729 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:22:35] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:22:35.323276 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:22:35] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:22:35.328839 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:22:35] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:22:45.504668 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:22:45 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'40'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'532'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_0b9189af62ae789a3bd8fddda25c1cd6'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b79577b51700e-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:22:45 GMT', 'content-type': 'application/json', 'content-length': '40', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '532', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_0b9189af62ae789a3bd8fddda25c1cd6', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b79577b51700e-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_0b9189af62ae789a3bd8fddda25c1cd6 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:22:47 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1599'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-b8bdd86cf-zkt5t'), (b'x-envoy-upstream-service-time', b'1588'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_91227e6c52c558d8c679b926834cc696'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b795e1b1e700e-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:22:47 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1599', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-b8bdd86cf-zkt5t', 'x-envoy-upstream-service-time': '1588', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_91227e6c52c558d8c679b926834cc696', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b795e1b1e700e-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_91227e6c52c558d8c679b926834cc696 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:22:49] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:24:15.869854 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:24:15.875470 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:24:15] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:24:15.881006 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:24:15] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:24:15.884664 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:24:15] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:24:15.887666 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:24:15] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:24:45.477256 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:24:45] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:24:54.288046 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:24:54.294833 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:24:54] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:24:54.305375 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:24:54.310900 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:24:54] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:24:54.317622 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:24:54] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:24:54] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 18:25:28.757357 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 18:25:28.757357 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 18:25:28.757357 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 18:25:28.757357 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 18:25:28.757357 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 18:25:28.805976 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:25:29 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'21'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'718'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_e25a8fdba02de922af4a0c83a7eff602'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=1QcYMQtQxTr9fJFxicoLMhXUpaUGq83td8IV2Og1JU0-1735493129-1.0.1.1-YZSfOARq.nqUtGNnKoz4tsn2xu2DeSTVrSFF0N8I1jYAou.qQOdzlOFtmlL5uRTRrnROe.285GLabJ3_GbijoQ; path=/; expires=Sun, 29-Dec-24 17:55:29 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=8FKs2G68vs1YInh8ipzA0OURKVUq8vppOj5dv0TZhBA-1735493129028-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b7d5319d32a22-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers([('date', 'Sun, 29 Dec 2024 17:25:29 GMT'), ('content-type', 'application/json'), ('content-length', '21'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-1wqtln7hwej6qqr3ar1uf5ok'), ('openai-processing-ms', '718'), ('openai-version', '2020-10-01'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('x-ratelimit-limit-requests', '500'), ('x-ratelimit-remaining-requests', '499'), ('x-ratelimit-reset-requests', '120ms'), ('x-request-id', 'req_e25a8fdba02de922af4a0c83a7eff602'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=1QcYMQtQxTr9fJFxicoLMhXUpaUGq83td8IV2Og1JU0-1735493129-1.0.1.1-YZSfOARq.nqUtGNnKoz4tsn2xu2DeSTVrSFF0N8I1jYAou.qQOdzlOFtmlL5uRTRrnROe.285GLabJ3_GbijoQ; path=/; expires=Sun, 29-Dec-24 17:55:29 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=8FKs2G68vs1YInh8ipzA0OURKVUq8vppOj5dv0TZhBA-1735493129028-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '8f9b7d5319d32a22-CDG'), ('alt-svc', 'h3=":443"; ma=86400')]) +DEBUG:openai._base_client:request_id: req_e25a8fdba02de922af4a0c83a7eff602 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:25:30 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1432'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-86c664c4fb-mqptb'), (b'x-envoy-upstream-service-time', b'1404'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_c4f9d020aa2490bae06fc7b938841097'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b7d589f7f2a22-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:25:30 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1432', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-86c664c4fb-mqptb', 'x-envoy-upstream-service-time': '1404', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_c4f9d020aa2490bae06fc7b938841097', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b7d589f7f2a22-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_c4f9d020aa2490bae06fc7b938841097 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:25:32] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 18:26:04.591362 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 18:26:04.591362 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 18:26:04.591362 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 18:26:04.591362 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 18:26:04.591362 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 18:26:04.862910 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:26:05] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:26:20.525268 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:26:23 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'19'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'2289'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_76e676e92a9f68a39aa9dac8284eb8f4'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=zOaudmrdra5imEL5VECW2MhlJj3kPc7FHEPKZWsJp6c-1735493183-1.0.1.1-fO64PM2mwfTa2RVZGmccmYm4RhNXtHQvAbrPfXvsBCLEug7Rdmt1hTkLTK.BxVt8tfsjGhf3cEAohtSVbg1byA; path=/; expires=Sun, 29-Dec-24 17:56:23 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=x7OhWHNVMdgXKWSM7EAh1fZ7L.eJOVGL9ihrW7tgNF8-1735493183079-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b7e9ad94e01ef-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers([('date', 'Sun, 29 Dec 2024 17:26:23 GMT'), ('content-type', 'application/json'), ('content-length', '19'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-1wqtln7hwej6qqr3ar1uf5ok'), ('openai-processing-ms', '2289'), ('openai-version', '2020-10-01'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('x-ratelimit-limit-requests', '500'), ('x-ratelimit-remaining-requests', '499'), ('x-ratelimit-reset-requests', '120ms'), ('x-request-id', 'req_76e676e92a9f68a39aa9dac8284eb8f4'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=zOaudmrdra5imEL5VECW2MhlJj3kPc7FHEPKZWsJp6c-1735493183-1.0.1.1-fO64PM2mwfTa2RVZGmccmYm4RhNXtHQvAbrPfXvsBCLEug7Rdmt1hTkLTK.BxVt8tfsjGhf3cEAohtSVbg1byA; path=/; expires=Sun, 29-Dec-24 17:56:23 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=x7OhWHNVMdgXKWSM7EAh1fZ7L.eJOVGL9ihrW7tgNF8-1735493183079-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '8f9b7e9ad94e01ef-CDG'), ('alt-svc', 'h3=":443"; ma=86400')]) +DEBUG:openai._base_client:request_id: req_76e676e92a9f68a39aa9dac8284eb8f4 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:26:26 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1635'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-6646c6d4d-gkvpm'), (b'x-envoy-upstream-service-time', b'1590'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_4d0d4efc8858a46697284ec751bbab60'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b7eb1ae1501ef-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:26:26 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1635', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-6646c6d4d-gkvpm', 'x-envoy-upstream-service-time': '1590', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_4d0d4efc8858a46697284ec751bbab60', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b7eb1ae1501ef-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_4d0d4efc8858a46697284ec751bbab60 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:26:27] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:27:24.871918 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:27:24.875341 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:27:24] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:27:24.878842 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:27:24] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:27:24.883170 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:27:24] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:27:25.459272 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:27:25] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:27:58.853514 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:27:58.857081 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:27:58] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:27:58.862430 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:27:58] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:27:58.866078 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:27:58.870208 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:27:58] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:27:58] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:28:04.694276 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:28:04] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:28:14.849005 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:28:15 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'29'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1416'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_1c3d7a3216b318cd8c8efdad735bb252'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b81606a1d04a8-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:28:15 GMT', 'content-type': 'application/json', 'content-length': '29', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1416', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_1c3d7a3216b318cd8c8efdad735bb252', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b81606a1d04a8-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_1c3d7a3216b318cd8c8efdad735bb252 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:28:17 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1219'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-5f98989b75-9l85g'), (b'x-envoy-upstream-service-time', b'1201'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_7fef56201ca2e485418dc893b555701c'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b816bafa204a8-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:28:17 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1219', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-5f98989b75-9l85g', 'x-envoy-upstream-service-time': '1201', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_7fef56201ca2e485418dc893b555701c', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b816bafa204a8-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_7fef56201ca2e485418dc893b555701c +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:28:18] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:06.716652 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:29:06.725622 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:29:06.733933 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:29:06.737931 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:06.747246 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:29:06.758654 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:29:06.764167 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:06.773228 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:06.789204 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:06.794054 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:06.809683 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:29:06.817141 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:29:06.827026 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:29:06.828343 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:06.849246 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:06.867758 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:06.879490 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:29:06.886426 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:06.930934 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:06.934926 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:06] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:07] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:39.422525 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:39] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:29:50.703523 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:29:51 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'15'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1797'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_cedbed65175ee4af05bc9037aa593a05'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b83b78b71f196-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:29:51 GMT', 'content-type': 'application/json', 'content-length': '15', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1797', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_cedbed65175ee4af05bc9037aa593a05', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b83b78b71f196-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_cedbed65175ee4af05bc9037aa593a05 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:29:53 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1106'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-b8bdd86cf-phf5k'), (b'x-envoy-upstream-service-time', b'1084'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_70b1b4fa9f27fb63faf1b6371c64df9a'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b83c3cf3ef196-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:29:53 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1106', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-b8bdd86cf-phf5k', 'x-envoy-upstream-service-time': '1084', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_70b1b4fa9f27fb63faf1b6371c64df9a', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b83c3cf3ef196-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_70b1b4fa9f27fb63faf1b6371c64df9a +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:29:54] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:03.295494 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:33:03.316754 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:33:03.339804 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:33:03.344720 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:33:03.347947 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:33:03.362692 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:03.382196 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:03.390076 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:03.399070 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:33:03.409410 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:03.433622 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:33:03.442401 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:33:03.467595 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:03.480190 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:33:03.486725 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:03.496807 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:root:2024-12-29 18:33:03.500802 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:03.516324 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:03.548290 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:03.570046 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:03] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:14.050229 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:14] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:33:25.737499 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:33:26 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'11'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'983'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_d727bc6265efbe9b8d1d0532e814ff03'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b88f8aa6e0207-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:33:26 GMT', 'content-type': 'application/json', 'content-length': '11', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '983', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_d727bc6265efbe9b8d1d0532e814ff03', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b88f8aa6e0207-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_d727bc6265efbe9b8d1d0532e814ff03 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:33:28 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1191'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-canary-cc6f5d69c-t65qj'), (b'x-envoy-upstream-service-time', b'1170'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_6f589b0e25f465680fe48eead2ea89a3'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b89011c560207-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:33:28 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1191', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-canary-cc6f5d69c-t65qj', 'x-envoy-upstream-service-time': '1170', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_6f589b0e25f465680fe48eead2ea89a3', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b89011c560207-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_6f589b0e25f465680fe48eead2ea89a3 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:33:29] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:35:09.015113 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:35:09.020598 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:35:09] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:35:09.028036 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:35:09.034682 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:35:09] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:35:09.046453 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:35:09] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:35:09] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:35:20.196818 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:35:20] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:35:23.866559 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:35:24 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'14'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'659'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_2f006b5e421a5c3f0bcf9648311bd678'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b8bda4ef4d081-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:35:24 GMT', 'content-type': 'application/json', 'content-length': '14', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '659', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_2f006b5e421a5c3f0bcf9648311bd678', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b8bda4ef4d081-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_2f006b5e421a5c3f0bcf9648311bd678 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:35:25 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1254'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-859f9cd9c6-zh595'), (b'x-envoy-upstream-service-time', b'1167'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_eb8ef701f9043381730e5358db97cb44'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b8be15e78d081-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:35:25 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1254', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-859f9cd9c6-zh595', 'x-envoy-upstream-service-time': '1167', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_eb8ef701f9043381730e5358db97cb44', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b8be15e78d081-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_eb8ef701f9043381730e5358db97cb44 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:35:28] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:35:55.986148 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:35:55.991404 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:35:55] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:35:55.997099 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:35:56.001564 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:35:56] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:35:56.012795 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:35:56] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:35:56] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:35:58.884798 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:35:58] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:36:06.382382 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:36:07 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'13'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1138'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_ccf8213b9bd85e4ba4fd618c7ea0abe4'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b8ce41c9101bd-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:36:07 GMT', 'content-type': 'application/json', 'content-length': '13', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1138', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_ccf8213b9bd85e4ba4fd618c7ea0abe4', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b8ce41c9101bd-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_ccf8213b9bd85e4ba4fd618c7ea0abe4 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:36:08 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1176'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-68478d78f5-ws2bg'), (b'x-envoy-upstream-service-time', b'1160'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_c8c0b118a8040e49bc441dde6409937c'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b8ceddf7701bd-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:36:08 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1176', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-68478d78f5-ws2bg', 'x-envoy-upstream-service-time': '1160', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_c8c0b118a8040e49bc441dde6409937c', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b8ceddf7701bd-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_c8c0b118a8040e49bc441dde6409937c +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:36:10] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:37:04.792037 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:37:04.796124 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:37:04] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:37:04.800752 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:37:04.805090 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:37:04] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:37:04] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:37:04.815134 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:37:04] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:37:07.776716 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:37:07] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:37:18.360879 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:37:20 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'46'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'2197'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_a3cd351db455531819683d4f6c8b6873'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b8ea5a8a0f8c9-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:37:20 GMT', 'content-type': 'application/json', 'content-length': '46', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '2197', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_a3cd351db455531819683d4f6c8b6873', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b8ea5a8a0f8c9-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_a3cd351db455531819683d4f6c8b6873 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:37:22 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1902'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-6689858b9b-54bs6'), (b'x-envoy-upstream-service-time', b'1858'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_de8628dbb80dd7df8684125badf6c8a5'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b8eb7bd01f8c9-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:37:22 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1902', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-6689858b9b-54bs6', 'x-envoy-upstream-service-time': '1858', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_de8628dbb80dd7df8684125badf6c8a5', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b8eb7bd01f8c9-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_de8628dbb80dd7df8684125badf6c8a5 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:37:24] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:37:44.820293 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:37:44.826481 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:37:44] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:37:44.833558 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:37:44] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:37:44.841699 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:37:44.849631 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:37:44] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:37:44] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:37:54.945004 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:37:54] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:38:07.179550 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:38:07 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'21'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'708'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_b190b0d1bc9896c0be7883e2b83190b5'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b8fd66927d6ae-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:38:07 GMT', 'content-type': 'application/json', 'content-length': '21', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '708', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_b190b0d1bc9896c0be7883e2b83190b5', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b8fd66927d6ae-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_b190b0d1bc9896c0be7883e2b83190b5 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:38:08 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1191'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-86c664c4fb-x7gdm'), (b'x-envoy-upstream-service-time', b'1168'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_a201aea1b7c8959a733ce47d3fb5fb81'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b8fdcf98fd6ae-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:38:08 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1191', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-86c664c4fb-x7gdm', 'x-envoy-upstream-service-time': '1168', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_a201aea1b7c8959a733ce47d3fb5fb81', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b8fdcf98fd6ae-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_a201aea1b7c8959a733ce47d3fb5fb81 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:38:10] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 18:40:31.973309 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 18:40:31.973309 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 18:40:31.974437 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 18:40:31.974437 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 18:40:31.974437 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 18:40:49.728626 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:40:49.732181 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:40:49.735410 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:40:49] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:40:49.740927 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:40:49] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:40:49] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:40:50.543169 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:40:50] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:41:19.528845 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:41:19] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:41:31.567925 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:41:33 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'21'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1104'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_a621c93039854a61b54309db24349785'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=dPwnQF2us70Xc.YN9zZq0UhRwfozpfySbzWHZ7btEb0-1735494093-1.0.1.1-4kUJp4zASz1usu9QCJuNxto8wkyTOpqF44_fdv2XTcFD5eAzASWDuBTYwFVA1xKSIaG2X1P7NkLcL3JGF5HZMg; path=/; expires=Sun, 29-Dec-24 18:11:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=9HboJMC056x70eKtFAom7M_MiA5WC6KfLTYRzGDuoVY-1735494093700-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b94dcdf857918-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers([('date', 'Sun, 29 Dec 2024 17:41:33 GMT'), ('content-type', 'application/json'), ('content-length', '21'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-1wqtln7hwej6qqr3ar1uf5ok'), ('openai-processing-ms', '1104'), ('openai-version', '2020-10-01'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('x-ratelimit-limit-requests', '500'), ('x-ratelimit-remaining-requests', '499'), ('x-ratelimit-reset-requests', '120ms'), ('x-request-id', 'req_a621c93039854a61b54309db24349785'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=dPwnQF2us70Xc.YN9zZq0UhRwfozpfySbzWHZ7btEb0-1735494093-1.0.1.1-4kUJp4zASz1usu9QCJuNxto8wkyTOpqF44_fdv2XTcFD5eAzASWDuBTYwFVA1xKSIaG2X1P7NkLcL3JGF5HZMg; path=/; expires=Sun, 29-Dec-24 18:11:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=9HboJMC056x70eKtFAom7M_MiA5WC6KfLTYRzGDuoVY-1735494093700-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '8f9b94dcdf857918-CDG'), ('alt-svc', 'h3=":443"; ma=86400')]) +DEBUG:openai._base_client:request_id: req_a621c93039854a61b54309db24349785 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:41:35 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1381'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-68478d78f5-tqwjp'), (b'x-envoy-upstream-service-time', b'1350'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_5980e1b2eda44a7facd7f01073589fdd'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b94e5d8b97918-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:41:35 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1381', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-68478d78f5-tqwjp', 'x-envoy-upstream-service-time': '1350', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_5980e1b2eda44a7facd7f01073589fdd', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b94e5d8b97918-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_5980e1b2eda44a7facd7f01073589fdd +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:41:37] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:41:49.449816 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:41:50 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'34'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1292'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_9eb8c48fb819501c711fec8a63b5efd2'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b9543efd33cc2-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:41:50 GMT', 'content-type': 'application/json', 'content-length': '34', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1292', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_9eb8c48fb819501c711fec8a63b5efd2', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b9543efd33cc2-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_9eb8c48fb819501c711fec8a63b5efd2 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:41:52 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1545'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-67d4454577-vhdg6'), (b'x-envoy-upstream-service-time', b'1531'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_fdd0b5bf7a939c8da7c7b53af5baa179'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b9550cdda3cc2-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:41:52 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1545', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-67d4454577-vhdg6', 'x-envoy-upstream-service-time': '1531', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_fdd0b5bf7a939c8da7c7b53af5baa179', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b9550cdda3cc2-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_fdd0b5bf7a939c8da7c7b53af5baa179 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:41:53] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:42:14.157014 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:42:14 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'19'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'594'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_542eec369466961de1149f912e18589c'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b95de18172a3e-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:42:14 GMT', 'content-type': 'application/json', 'content-length': '19', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '594', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_542eec369466961de1149f912e18589c', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b95de18172a3e-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_542eec369466961de1149f912e18589c +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:42:15 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1554'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-b8bdd86cf-4xlqn'), (b'x-envoy-upstream-service-time', b'1535'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_28a8883ec1cb986eac51e03d24d71fd4'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b95e2fe4a2a3e-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:42:15 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1554', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-b8bdd86cf-4xlqn', 'x-envoy-upstream-service-time': '1535', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_28a8883ec1cb986eac51e03d24d71fd4', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b95e2fe4a2a3e-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_28a8883ec1cb986eac51e03d24d71fd4 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:42:17] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:42:29.508920 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:42:31 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'21'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1835'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_e2683a53a760d1d63478b2efd618f038'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b963f3e416f75-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:42:31 GMT', 'content-type': 'application/json', 'content-length': '21', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1835', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_e2683a53a760d1d63478b2efd618f038', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b963f3e416f75-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_e2683a53a760d1d63478b2efd618f038 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:42:32 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1236'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-6c54968c78-4x6pt'), (b'x-envoy-upstream-service-time', b'1209'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_8c3c3d7071c473ea6b8ae71cf813ffd3'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b964d5b2c6f75-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:42:32 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1236', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-6c54968c78-4x6pt', 'x-envoy-upstream-service-time': '1209', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_8c3c3d7071c473ea6b8ae71cf813ffd3', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b964d5b2c6f75-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_8c3c3d7071c473ea6b8ae71cf813ffd3 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:42:34] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:42:46.829400 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:42:47 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'20'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'715'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_65ae23a1ffcdc343fc3adb8a201ce5ea'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b96aa3e5f2a1c-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:42:47 GMT', 'content-type': 'application/json', 'content-length': '20', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '715', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_65ae23a1ffcdc343fc3adb8a201ce5ea', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b96aa3e5f2a1c-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_65ae23a1ffcdc343fc3adb8a201ce5ea +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " L'instruction a été annulée", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:42:48 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1716'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-7d46678889-vm4m7'), (b'x-envoy-upstream-service-time', b'1695'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_29a400f3c29c8f93d6c97068e8d2b9c8'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b96b00dba2a1c-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:42:48 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1716', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-7d46678889-vm4m7', 'x-envoy-upstream-service-time': '1695', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_29a400f3c29c8f93d6c97068e8d2b9c8', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b96b00dba2a1c-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_29a400f3c29c8f93d6c97068e8d2b9c8 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:42:50] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 18:45:24.039989 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 18:45:24.039989 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 18:45:24.039989 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 18:45:24.039989 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 18:45:24.039989 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 18:45:59.814482 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:45:59.818040 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:45:59] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:45:59.838345 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:45:59] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:45:59.870129 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:45:59] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:00.772707 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:00] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2024-12-29 18:46:41.935971 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-12-29 18:46:41.935971 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-12-29 18:46:41.935971 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-12-29 18:46:41.935971 : ++ FLASK PORT 5001 ++ +INFO:root:2024-12-29 18:46:41.935971 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-12-29 18:46:41.989000 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:46:41.994038 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:46:41.998047 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:46:42.002571 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:46:42.005580 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:46:42.012614 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:42.025092 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:42.035347 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:46:42.042006 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:42.051865 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:42.064989 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:46:42.072593 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/Get_Given_SessionFormation_From_Id/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:42.094444 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:42.221727 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/Get_Editable_Document_By_Partner_By_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:42.231265 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-12-29 18:46:42.235784 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:42] "POST /myclass/api/get_list_specific_field_partner_by_object/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:44.269282 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:44] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:44.271724 : get_Agenda_Event_List - La valeur 'related_collection' n'est pas presente dans liste +INFO:root:2024-12-29 18:46:44.271724 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:44] "POST /myclass/api/get_Agenda_Event_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:44] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:44.274259 : Audit_Session_Action_Inscrit L'identifiant de la session est invalide +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:44] "POST /myclass/api/Audit_Session_Action_Inscrit/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:46:49.871785 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:46:49] "POST /myclass/api/mysy_openai_get_voice_file/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:47:00.424963 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:47:01 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'22'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1375'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_c412712782888efb5550564a9654fac6'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=n8hLDgE0vJhV5mEbI1mfS.7I5UuoSD5PWUgFiSSzj7E-1735494421-1.0.1.1-gV2_uWi6.hkmIoB4gnqVRzCkpow134F612oI_OV_vzCVSP0NsSZ3DUcVaKPwUzTFfYfDyHsc6t_ZZMZl5jFo0A; path=/; expires=Sun, 29-Dec-24 18:17:01 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=M4E91UrLgre3KjeT9.OP5.ojTBd2aNhvP__T931NMK4-1735494421959-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b9cdebf48036d-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers([('date', 'Sun, 29 Dec 2024 17:47:01 GMT'), ('content-type', 'application/json'), ('content-length', '22'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-1wqtln7hwej6qqr3ar1uf5ok'), ('openai-processing-ms', '1375'), ('openai-version', '2020-10-01'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('x-ratelimit-limit-requests', '500'), ('x-ratelimit-remaining-requests', '499'), ('x-ratelimit-reset-requests', '120ms'), ('x-request-id', 'req_c412712782888efb5550564a9654fac6'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=n8hLDgE0vJhV5mEbI1mfS.7I5UuoSD5PWUgFiSSzj7E-1735494421-1.0.1.1-gV2_uWi6.hkmIoB4gnqVRzCkpow134F612oI_OV_vzCVSP0NsSZ3DUcVaKPwUzTFfYfDyHsc6t_ZZMZl5jFo0A; path=/; expires=Sun, 29-Dec-24 18:17:01 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=M4E91UrLgre3KjeT9.OP5.ojTBd2aNhvP__T931NMK4-1735494421959-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '8f9b9cdebf48036d-CDG'), ('alt-svc', 'h3=":443"; ma=86400')]) +DEBUG:openai._base_client:request_id: req_c412712782888efb5550564a9654fac6 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:47:04 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1861'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-6c54968c78-bkchh'), (b'x-envoy-upstream-service-time', b'1844'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_b991ed8d5a93c554010bf21fa6d29f35'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b9ceb8b9b036d-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:47:04 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1861', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-6c54968c78-bkchh', 'x-envoy-upstream-service-time': '1844', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_b991ed8d5a93c554010bf21fa6d29f35', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b9ceb8b9b036d-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_b991ed8d5a93c554010bf21fa6d29f35 +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:47:05] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:47:23.144135 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:47:24 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'26'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1461'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_3c08cb0b3602d4c975769d10ec185665'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b9d6c2b653d07-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:47:24 GMT', 'content-type': 'application/json', 'content-length': '26', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1461', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_3c08cb0b3602d4c975769d10ec185665', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b9d6c2b653d07-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_3c08cb0b3602d4c975769d10ec185665 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " Je n'ai pas compris l'instruction. merci de répéter ", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:47:26 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1737'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-6c54968c78-lnr85'), (b'x-envoy-upstream-service-time', b'1708'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_73883c5b432847011c7ddb4b034d5a8c'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b9d78b8083d07-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:47:26 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1737', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-6c54968c78-lnr85', 'x-envoy-upstream-service-time': '1708', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_73883c5b432847011c7ddb4b034d5a8c', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b9d78b8083d07-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_73883c5b432847011c7ddb4b034d5a8c +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:47:28] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - +INFO:root:2024-12-29 18:47:54.427077 : Security check : IP adresse '127.0.0.1' connected +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/transcriptions', 'headers': {'Content-Type': 'multipart/form-data'}, 'files': [('file', <_io.BufferedReader name='temp_direct/confirmation_test_audio_pr_IA.mp3'>)], 'json_data': {'model': 'whisper-1'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/transcriptions +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='api.openai.com' port=443 local_address=None timeout=5.0 socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:start_tls.started ssl_context= server_hostname='api.openai.com' timeout=5.0 +DEBUG:httpcore.connection:start_tls.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:47:55 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'19'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'749'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_66ef7460c1702c74ee78a430124b9865'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b9e2eed500076-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/transcriptions "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/transcriptions "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:47:55 GMT', 'content-type': 'application/json', 'content-length': '19', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '749', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_66ef7460c1702c74ee78a430124b9865', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b9e2eed500076-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_66ef7460c1702c74ee78a430124b9865 +DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/audio/speech', 'headers': {'Accept': 'application/octet-stream'}, 'files': None, 'json_data': {'input': " L'instruction a été annulée", 'model': 'tts-1-hd', 'voice': 'onyx'}} +DEBUG:openai._base_client:Sending HTTP Request: POST https://api.openai.com/v1/audio/speech +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 29 Dec 2024 17:47:57 GMT'), (b'Content-Type', b'audio/mpeg'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'access-control-expose-headers', b'X-Request-ID'), (b'openai-organization', b'user-1wqtln7hwej6qqr3ar1uf5ok'), (b'openai-processing-ms', b'1277'), (b'openai-version', b'2020-10-01'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'via', b'envoy-router-canary-546ccc777b-dmhqx'), (b'x-envoy-upstream-service-time', b'1090'), (b'x-ratelimit-limit-requests', b'500'), (b'x-ratelimit-remaining-requests', b'499'), (b'x-ratelimit-reset-requests', b'120ms'), (b'x-request-id', b'req_cad10dcc1944fa4efed7ddbf95e0813d'), (b'CF-Cache-Status', b'DYNAMIC'), (b'X-Content-Type-Options', b'nosniff'), (b'Server', b'cloudflare'), (b'CF-RAY', b'8f9b9e3909590076-CDG'), (b'alt-svc', b'h3=":443"; ma=86400')]) +INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/audio/speech "200 OK" Headers({'date': 'Sun, 29 Dec 2024 17:47:57 GMT', 'content-type': 'audio/mpeg', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'access-control-expose-headers': 'X-Request-ID', 'openai-organization': 'user-1wqtln7hwej6qqr3ar1uf5ok', 'openai-processing-ms': '1277', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'via': 'envoy-router-canary-546ccc777b-dmhqx', 'x-envoy-upstream-service-time': '1090', 'x-ratelimit-limit-requests': '500', 'x-ratelimit-remaining-requests': '499', 'x-ratelimit-reset-requests': '120ms', 'x-request-id': 'req_cad10dcc1944fa4efed7ddbf95e0813d', 'cf-cache-status': 'DYNAMIC', 'x-content-type-options': 'nosniff', 'server': 'cloudflare', 'cf-ray': '8f9b9e3909590076-CDG', 'alt-svc': 'h3=":443"; ma=86400'}) +DEBUG:openai._base_client:request_id: req_cad10dcc1944fa4efed7ddbf95e0813d +INFO:werkzeug:127.0.0.1 - - [29/Dec/2024 18:47:58] "POST /myclass/api/mysy_openai_confirme_voice_instruction_api/ HTTP/1.1" 200 - diff --git a/main.py b/main.py index 7d26ee1..7f5ad8f 100644 --- a/main.py +++ b/main.py @@ -11473,6 +11473,7 @@ def mysy_openai_get_voice_file(): new_payload = {} new_payload['voice_file'] = "temp_direct/test_audio_pr_IA.mp3" + new_payload['token'] = payload['token'] status, retval, collection_instruction_id = mysy_openai_file.mysy_openai_voice_to_text(new_payload) """ @@ -11512,15 +11513,21 @@ def mysy_openai_confirme_voice_instruction_api(): f.filename = "confirmation_test_audio_pr_IA.mp3" f.save(os.path.join(str("./temp_direct/confirmation_test_audio_pr_IA.mp3"))) + repeat_instruction = "0" + new_payload = {} new_payload['voice_file'] = "temp_direct/confirmation_test_audio_pr_IA.mp3" new_payload['token'] = payload['token'] new_payload['instruction_id'] = payload['instruction_id'] - status, retval = mysy_openai_file.mysy_openai_confirme_voice_instruction(new_payload) + status, retval, repeat = mysy_openai_file.mysy_openai_confirme_voice_instruction(new_payload) + if(status is False ): + return + # SI on a bien compris l'instruction, on demande à repeter, ceci sans annuler l'instruction en cours + repeat_instruction = repeat collection_instruction_id = str(payload['instruction_id']) audio_file_name = retval - + local_instruction_id = "" print(" ### audio_file_name = ", retval) @@ -11538,10 +11545,13 @@ def mysy_openai_confirme_voice_instruction_api(): print(" ### new_diction = ", new_diction) - status, message = mysy_openai_file.mysy_openai_get_voice_file(new_diction) - return jsonify(status=status, message=message, collection_instruction_id="") + if(repeat_instruction == "1"): + local_instruction_id = str(payload['instruction_id']) - return jsonify(status=False, message="Impossible de traiter le fichier audio", collection_instruction_id = False) + status, message = mysy_openai_file.mysy_openai_get_voice_file(new_diction) + return jsonify(status=status, message=message, collection_instruction_id= str(local_instruction_id), repeat_instruction = str(repeat_instruction)) + + return jsonify(status=False, message="Impossible de traiter le fichier audio", collection_instruction_id = str(local_instruction_id), repeat_instruction = str(repeat_instruction)) diff --git a/tools_cherif/mysy_openai_file.py b/tools_cherif/mysy_openai_file.py index 85f0c4c..8ccc7c6 100644 --- a/tools_cherif/mysy_openai_file.py +++ b/tools_cherif/mysy_openai_file.py @@ -1,28 +1,17 @@ import ast import base64 - -import pymongo -import zeep -from pymongo import MongoClient -import json from bson import ObjectId import re from datetime import datetime + +from pymongo import ReturnDocument + import prj_common as mycommon import secrets import inspect import sys, os -from flask import send_file -import csv -import pandas as pd -from pymongo import ReturnDocument -from math import isnan import GlobalVariable as MYSY_GV -import ela_index_bdd_classes as eibdd -import email_mgt as email - -from validate_email import validate_email -import jinja2 +import Ela_Spacy as ela_Spacy import class_mgt as class_mgt @@ -168,10 +157,14 @@ def mysy_openai_instruction_collection_confirmation_texte(diction): """ -Cette fonction prend un fichier audio et le converti en fichier texte +Cette fonction prend un fichier audio et le converti en fichier texte. +cette fonctio prend comme argument : +- voice_text +- token """ def mysy_openai_voice_to_text(diction): try: + file_name = "temp_direct/mysy_test_voice_mp3.mp3" if( "voice_file" in diction.keys() and diction['voice_file'] ): file_name = diction['voice_file'] @@ -191,7 +184,12 @@ def mysy_openai_voice_to_text(diction): print(requestion_response) - status, retval, collection_instruction_id = mysy_openai_voice_to_text_traitement_1(requestion_response) + new_diction = {} + new_diction['voice_text'] = str(requestion_response) + new_diction['token'] = str(diction['token']) + + + status, retval, collection_instruction_id = mysy_openai_voice_to_text_traitement_1(new_diction) return True, requestion_response, collection_instruction_id @@ -334,8 +332,14 @@ Cette fonction prend une phrase et fait un decoupage comme suit : """ tab_order_mysy = ['ok, missi', 'ok missi', 'ok; missi','ok, missy', 'ok mysy'] -def mysy_openai_voice_to_text_traitement_1(voice_text): +def mysy_openai_voice_to_text_traitement_1(diction): try: + voice_text = diction['voice_text'] + local_status, my_partner = mycommon.Check_Connexion_And_Return_Partner_Data({'token': diction['token']}) + + if (local_status is not True): + return local_status, my_partner + print(" ### Texte initial = ", str(voice_text).strip().lower()) voice_text_work = str(voice_text).strip().lower() @@ -346,7 +350,7 @@ def mysy_openai_voice_to_text_traitement_1(voice_text): new_diction = {} new_diction['text'] = str(voice_text_work) - new_diction['partner_owner_recid'] = "partner_owner_recid" + new_diction['partner_owner_recid'] = str(my_partner['recid']) new_diction['related_object'] = "myclass" new_diction['related_collection_recid'] = "dqsqddd0ed" @@ -606,7 +610,12 @@ def mysy_openai_assistant(diction): """ -Cette fonction prend l'_id d'une instruction en cours et effectue le traitement +Cette fonction prend l'_id d'une instruction, un fichier audi. + + Si l'audit confirme l'instruction, alors l'instruction est traitée. + si l'audit annule l'instruction, alors on annule l'instruction. + + """ def mysy_openai_confirme_voice_instruction(diction): try: @@ -635,6 +644,12 @@ def mysy_openai_confirme_voice_instruction(diction): #return False, " Impossible de récupérer les informations" + local_status, my_partner = mycommon.Check_Connexion_And_Return_Partner_Data(diction) + if (local_status is not True): + voice_erreur_text = "Erreur technique 4 : Instruction invalide " + return False, voice_erreur_text, False + + file_name = "" if( "voice_file" in diction.keys() and diction['voice_file'] ): file_name = diction['voice_file'] @@ -642,7 +657,86 @@ def mysy_openai_confirme_voice_instruction(diction): mycommon.myprint( str(inspect.stack()[0][3]) + " Aucune instruction à traiter. Processus annulé. ") voice_erreur_text = "Erreur technique 3 : Instruction invalide " - return False, " Aucune instruction à traiter. Processus annulé. " + return False, " Aucune instruction à traiter. Processus annulé. ", False + + """ + Verifier si l'instruction a été confirmée par le fichier audio + """ + audio_file = open(file_name, "rb") + transcription = client.audio.transcriptions.create( + model="whisper-1", + file=audio_file, + # response_format = "text" + ) + + requestion_response = transcription.text + print(" ### mysy_openai_confirme_voice_instruction message de confirmtion = ", requestion_response) + + status, tab_tokens = ela_Spacy.Ela_Tokenize(requestion_response) + if (status is False): + voice_erreur_text = " Je n'ai pas compris votre message." + repeat = "1" + return True, voice_erreur_text, repeat + + local_status, tab_retval = ela_Spacy.Ela_remove_stop_words(tab_tokens) + print(" ### mysy_openai_confirme_voice_instruction tab_retval= ", tab_retval) + + confirmation_annulation_action = "" + confirmation_annulation_action_value = "" + # Verifier d'abord si c'est une annulation + for voice_message_token in tab_retval: + for confirmation_mot in MYSY_GV.VOICE_INSTRUCTION_ANNULATION : + cmp_levenshtein = int(mycommon.levenshtein(voice_message_token, str(confirmation_mot))) + if( cmp_levenshtein < 2 ): + print(" ### Le message orale est 11 : ", str(confirmation_mot)) + confirmation_annulation_action = str(confirmation_mot) + confirmation_annulation_action_value = "0" + continue + + # Puis verifier si c'est un message de confirmation pour exécuter l'instruction + for voice_message_token in tab_retval: + for confirmation_mot in MYSY_GV.VOICE_INSTRUCTION_CONFIRMATION: + cmp_levenshtein = int(mycommon.levenshtein(voice_message_token, str(confirmation_mot))) + if (cmp_levenshtein < 2): + print(" ### Le message orale est 22 : ", str(confirmation_mot)) + confirmation_annulation_action = str(confirmation_mot) + confirmation_annulation_action_value = "1" + continue + + print(" ### ACTION A REALISER EST : ", confirmation_annulation_action) + + if( confirmation_annulation_action_value == "0" ): + # Il faut annuler l'instruction + after_intruction_text = " L'instruction a été annulée" + new_data = {} + new_data['valide'] = '0' + new_data['locked'] = '0' + new_data['update_by'] = str(my_partner['_id']) + new_data['date_update'] = str(datetime.now()) + + result = MYSY_GV.dbname['voice_instruction'].find_one_and_update( + {'_id': ObjectId(str(diction['instruction_id'])), + 'valide': '1', 'locked': '0'}, + {"$set": new_data}, + upsert=False, + return_document=ReturnDocument.AFTER + ) + + local_status, outpufile_name = mysy_openai_text_to_voice({'text': str(after_intruction_text)}) + print(" le fichier audio de confirmation est : ", outpufile_name) + return True, outpufile_name, "0" + + + + + elif( confirmation_annulation_action_value == ""): + # Impossible de comprendre le message + after_intruction_text = " Je n'ai pas compris l'instruction. merci de répéter " + local_status, outpufile_name = mysy_openai_text_to_voice({'text': str(after_intruction_text)}) + print(" le fichier audio de confirmation est : ", outpufile_name) + repeat = "1" + return True, outpufile_name, repeat + """ @@ -658,7 +752,7 @@ def mysy_openai_confirme_voice_instruction(diction): if( voice_erreur_text and len(str(voice_erreur_text)) > 5): - return False, voice_erreur_text + return False, voice_erreur_text, "0" audio_file = open(file_name, "rb") @@ -694,14 +788,14 @@ def mysy_openai_confirme_voice_instruction(diction): print(" le fichier audio de confirmation est : ", outpufile_name) - return True, outpufile_name + return True, outpufile_name, "0" except Exception as e: exc_type, exc_obj, exc_tb = sys.exc_info() mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno)) - return False, " Impossible de traiter : mysy_openai_voice_to_text" + return False, " Impossible de traiter : mysy_openai_voice_to_text", "0" """