def METHOD_NAME(self,
                                    model_id,
                                    inputs,
                                    init_kwargs={},
                                    run_kwargs={}):
    pipeline_ins = pipeline(task=Tasks.chat, model=model_id, **init_kwargs)
    pipeline_ins._model_prepare = True
    history = None
    for turn_idx, query in enumerate(inputs, start=1):
        results = pipeline_ins(
            query,
            history=history,
        )
        response, history = results['response'], results['history']
        print(f'===== Turn {turn_idx} ====')
        print('Query:', query, end='\n')
        print('Response:', response, end='\n')