From 9590012228c41b2a7879b30f254c56846d293ae4 Mon Sep 17 00:00:00 2001 From: NeonKirill Date: Mon, 18 Mar 2024 22:00:12 +0100 Subject: [PATCH] Fixed issue with failing of getting personas configs --- neon_llm_core/utils/personas/state.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neon_llm_core/utils/personas/state.py b/neon_llm_core/utils/personas/state.py index 9f696a1..f36e76d 100644 --- a/neon_llm_core/utils/personas/state.py +++ b/neon_llm_core/utils/personas/state.py @@ -69,8 +69,9 @@ def add_persona_handler(self, persona: PersonaModel) -> Union[LLMBot, None]: LOG.warning(f"Persona disabled: '{persona.id}'") return # Get a configured username to use for LLM submind connections - self.ovos_config["MQ"]["users"][persona.name] = self.mq_config['users']['neon_llm_submind'] - bot = LLMBot(llm_name=self.service_name, service_name=f"{persona.id}-{self.service_name}", + persona_id = f"{persona.id}-{self.service_name}" + self.ovos_config["MQ"]["users"][persona_id] = self.mq_config['users']['neon_llm_submind'] + bot = LLMBot(llm_name=self.service_name, service_name=persona_id, persona=persona_dict, config=self.ovos_config, vhost="/chatbots") bot.run()