Closed Ajaypawar02 closed 1 year ago
Could you share what response time you are currently encountering? Is this the response for the pusher_client.trigger
call or the time for the client to receive the triggered event?
issue has been resolved. Thank You
class MyCallbackHandler(BaseCallbackHandler): def init(self,new_payload : Dict): self.user_id = new_payload["user_id"] self.session_id = new_payload["session_id"] self.message_id = new_payload["message_id"] self.status = "processing" self.session_id_channel = f"{self.session_id}_channel" self.count = 0 self.temp_count = 0 self.response = "" self.flag = True self.threshold_no = int(os.getenv("CHUNK_SIZE")) self.text = ""
def on_llm_new_token(self, token, **kwargs) -> None:
Any suggestion to reduce response time