HTTP Client
1
Total requests
1
HTTP errors
Clients
http_client 1
Requests
| POST | https://api.openai.com/v1/chat/completions | |
|---|---|---|
| Request options | [ "headers" => [ "Authorization" => "Bearer " "Content-Type" => "application/json" ] "json" => [ "model" => "gpt-4o" "messages" => [ [ "role" => "system" "content" => "Vous êtes un expert en gestion, suivi et évaluation de projets gouvernementaux. Réponds toujours en français et structure tes réponses json sans les "```json"." ] [ "role" => "user" "content" => """ Tu es un expert en suivi-évaluation de projets gouvernementaux. Je vais te fournir un ensemble de données (KPIs globaux, projets en retard, incidents...).\n Génère une liste d'insights structurés en JSON respectant strictement le modèle suivant :\n [\n {\n "observation": "[emoji] Titre de l’observation (phrase courte)",\n "description": "Texte explicatif ou analyse en une phrase",\n "actionable_steps": ["Étape concrète à envisager", "Autre action à prendre"],\n "keywords": ["mot-clé-1", "mot-clé-2"]\n }\n ]\n Ne commente pas. Ne fournis aucun texte hors du tableau JSON.Voici les données :\n - execution_rate : 1.28 (metadata : {"value":1.28,"period":"2025-09","variation":0,"department":null,"performance":0,"project_count":1})\n - milestone_processing_delay : 0 (metadata : {"value":0,"department":null,"fill_delay":13.03,"approve_delay":0,"validate_delay":0,"fill_trend_delay":0,"approve_trend_delay":0,"validate_trend_delay":0})\n - milestone_performance_score : 0 (metadata : {"value":0,"metadata":{"raw_delays":{"fill_delay":0,"approve_delay":0,"validate_delay":0},"weighted_delay":0},"department":null})\n - top_5_projects : 0 (metadata : {"value":0,"metadata":[],"department":null})\n - flop_5_projects : 0 (metadata : {"value":0,"metadata":[{"id":1,"owner":"SENTER\/DG","acronym":"MEPDU","gap_avg":-98.72,"project":"Mise en place d'une usine de Traverse en B\u00e9ton","performance":1.28,"actual_progress_avg":1.28,"planned_progress_avg":100,"relative_performance":1.28}],"department":null})\n - projects_performance : 1.28 (metadata : {"trend":0,"value":1.28,"period":"2025-09","variation":0,"department":null,"project_count":1,"project_count_status":"stable","delayed_project_count":1,"on_time_project_count":0})\n - budget_allocated : 10000000000 (metadata : {"unit":"FCFA","value":10000000000,"department":null})\n - budget_committed : 2603000 (metadata : {"unit":"FCFA","value":2603000,"department":null})\n - budget_disbursed : 0 (metadata : {"unit":"FCFA","value":0,"department":null})\n - budget_execution_rate : 0 (metadata : {"unit":"%","value":0,"department":null})\n \n Rédige les insights sous forme de liste avec des emojis et des mots-clés utiles. """ ] ] "temperature" => 0.7 ] ] |
|
| Response |
401
[ "info" => [ "header_size" => 934 "request_size" => 211 "total_time" => 0.508179 "namelookup_time" => 0.200219 "connect_time" => 0.206399 "pretransfer_time" => 0.215989 "size_upload" => 3351.0 "size_download" => 496.0 "speed_download" => 976.0 "speed_upload" => 6596.0 "download_content_length" => 496.0 "upload_content_length" => 3351.0 "starttransfer_time" => 0.216012 "primary_ip" => "162.159.140.245" "primary_port" => 443 "local_ip" => "10.123.20.10" "local_port" => 40962 "http_version" => 3 "protocol" => 2 "scheme" => "HTTPS" "appconnect_time_us" => 215777 "connect_time_us" => 206399 "namelookup_time_us" => 200219 "pretransfer_time_us" => 215989 "starttransfer_time_us" => 216012 "total_time_us" => 508179 "start_time" => 1777911019.0213 "original_url" => "https://api.openai.com/v1/chat/completions" "pause_handler" => Closure(float $duration) {#2051 : "Symfony\Component\HttpClient\Response\CurlResponse" : { : CurlHandle {#1983 …} : Symfony\Component\HttpClient\Internal\CurlClientState {#2030 …} : -9223372036854775808 } } "debug" => "Due to a bug in curl 7.64.0, the debug log is disabled; use another version to work around the issue." ] "response_headers" => [ "HTTP/2 401 " "date: Mon, 04 May 2026 16:10:19 GMT" "content-type: application/json; charset=utf-8" "content-length: 496" "set-cookie: __cf_bm=wzrLolm_rgGTCr56tbXWeketxG0cF6m1w1W03m4L9Y8-1777911019.4552722-1.0.1.1-HqWcCJEDJ.wp8q6BhWH.Goyt5I86yyKoqPZzBcgdgRcnxzlhPhWRoByCJ2CIaMFDU1jpfQ5vbdSVK.EHXDqH3YdwsQp44qzJ_bayS8BwhAUXH4cbmFwgOBUyQsQrXKff; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 04 May 2026 16:40:19 GMT" "set-cookie: _cfuvid=mZtL3TfGLOeqZjLcM9nIh_NA.xwFVYewZk5GfScCmVU-1777911019.4552722-1.0.1.1-Aw0XFDGlC_V07gtUifBYUcyrUV2xlMp0hVps1wD1Be0; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com" "cf-ray: 9f68c65f9cdc7008-CDG" "cf-cache-status: DYNAMIC" "server: cloudflare" "strict-transport-security: max-age=31536000; includeSubDomains; preload" "vary: Origin" "x-content-type-options: nosniff" "x-openai-proxy-wasm: v0.1" "x-request-id: req_72445fc4253141848533d496a1c614ec" "alt-svc: h3=":443"; ma=86400" ] "response_content" => [ """ {\n "error": {\n "message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",\n "type": "invalid_request_error",\n "param": null,\n "code": null\n }\n }\n """ ] ] |
|