def METHOD_NAME(self, inputs, llm_kwargs, history, system_prompt):
    llm_kwargs = llm_kwargs
    history = history
    system_prompt = system_prompt
    import _thread as thread
    thread.start_new_thread(self.create_blocking_request, (inputs, llm_kwargs, history, system_prompt))
    while True:
        self.time_to_yield_event.wait(timeout=1)
        if self.time_to_yield_event.is_set():
            yield self.result_buf
        if self.time_to_exit_event.is_set():
            return self.result_buf