Skip to content

Commit

Permalink
fix: 🐛 brain
Browse files Browse the repository at this point in the history
fixed when brainful is empty
  • Loading branch information
StanGirard committed Jan 27, 2024
1 parent 64ba190 commit a46e408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/modules/chat/controller/chat/brainful_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,6 @@ def get_answer_generator(
prompt_id=prompt_id,
user_id=user_id,
metadata=metadata,
raw=brain_definition.raw,
jq_instructions=brain_definition.jq_instructions,
raw=(brain_definition.raw if brain_definition else None),
jq_instructions=(brain_definition.jq_instructions if brain_definition else None),
)

0 comments on commit a46e408

Please sign in to comment.