Change return format for rpc method codecomplete/get