["method"=>"POST","header"=>"Content-Type: application/json\r\n","content"=>json_encode(["model"=>"fast","messages"=>[["role"=>"user","content"=>"HI"]],"max_tokens"=>50]),"timeout"=>10]]); $t0 = microtime(true); $resp = @file_get_contents("http://127.0.0.1:4000/v1/chat/completions", false, $ctx); $el = round((microtime(true)-$t0)*1000); echo json_encode(["elapsed_ms"=>$el, "ok"=>(bool)$resp, "first"=>substr($resp?:"empty",0,200)]);