Skip to content

Commit

Permalink
Remapping persona_name to name
Browse files Browse the repository at this point in the history
  • Loading branch information
kirgrim committed Mar 10, 2024
1 parent 2f9d464 commit d4dcaf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions neon_llm_core/utils/personas/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def _fetch_persona_config(self):
target_queue=PersonasProvider.GET_CONFIGURED_PERSONAS_QUEUE)
self.personas = response.get('items', [])
for persona in self.personas:
persona.setdefault('name', persona.pop('persona_name', None))
persona = PersonaModel.parse_obj(obj=persona)
self._persona_handlers_state.add_persona_handler(persona=persona)

Expand Down

0 comments on commit d4dcaf6

Please sign in to comment.