Skip to content

Commit

Permalink
Fixed issue with failing of getting personas configs
Browse files Browse the repository at this point in the history
  • Loading branch information
kirgrim committed Mar 18, 2024
1 parent 7aca6ae commit 9590012
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neon_llm_core/utils/personas/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9590012

Please sign in to comment.