Pystan2 to pystan3

pystan2

model_fit = model.sampling(data=data_dict, iter=1000, chains=6, warmup=400, n_jobs=-1, seed=np.random.randint(100),
control=dict(max_treedepth=12, adapt_delta=0.80), check_hmc_diagnostics=True)

i tried to change this in pystan3 as

posterior = stan.build(model_code, data = data_dict)
model_fit = posterior.sample( num_chains=6)

i want to use exact same arguments in pystan3.I have gone through available documentations but could not resolve . please help me as soon as possible